Application Development 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: 

FM or class or Exit for changing input value from Decimal to floating point

0 Kudos

Hi Experts,

There is a need to convert an input value from Decimal to floating point. I request you all to suggest any FM or other way in which we can achieve this.

Best Regards

3 REPLIES 3

matt
Active Contributor
DATA decimal_value TYPE p DECIMALS 2 VALUE '1.23'.
DATA floating_point_value TYPE f.
floating_point_value = decimal_value

Sandra_Rossi
Active Contributor
0 Kudos

Doesn't it work?

fltp = dec.

raymond_giuseppi
Active Contributor
0 Kudos