Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Floating Point arithmetic conversion

Former Member
0 Likes
561

Hi Everyone,

Can you tell me how to convert a floating point arithmetic field value to a currency field value.

thanks,

chan

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
523

Hi,

I hope simple move statement should work.

MOVE l_float TO l_curr.

Make sure that curr field has enough length.

Thanks,

Vinod.

3 REPLIES 3
Read only

vinod_vemuru2
Active Contributor
0 Likes
524

Hi,

I hope simple move statement should work.

MOVE l_float TO l_curr.

Make sure that curr field has enough length.

Thanks,

Vinod.

Read only

former_member156446
Active Contributor
0 Likes
523

you can use 'FLTP_CHAR_CONVERSION' function.. or if you search in SCN you have many discussions on the same topic.

Read only

Former Member
0 Likes
523

My own personal quirk, I know, but I like to use a variable of type p decimals 2,

then: p_variable = 0 + fp-field....

alwys works for me )