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.
Showing results for 
Search instead for 
Did you mean: 

Convert floating numbers with exponents

0 Kudos

Hi all

I have a floating point value 1.4147483939E10


I want this number as 141.474 54.684

How can this be achieved ?

Note:- I have already tried moving the value to a p type variable of p decimals 3 and it's not serving the purpose

It's a include within a standard program and the fixed point arithmetic is not checked


0 Kudos

Us like this

IF var CP '*E+*'.

* --> Move to Float

DATA(lv_float) = CONV imrc_recdv( var ).

here imrc_recdv is a floating type

Active Contributor
0 Kudos

You didn't understand the solution that Matthew gave you in your previous question.

  • "Since you can't change the standard program, the simplest thing to do is put your logic into a separate class with methods. Make sure the class has "Fixed point arithmetic" set in the properties.
  • Call your method from the include."

You'd better continue a discussion, and ask question or confirmation if you don't understand.