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: 

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

0 Kudos
326

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
289
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
289

Doesn't it work?

fltp = dec.

RaymondGiuseppi
Active Contributor
0 Kudos
289