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

Bulid in Data type float

Former Member
0 Likes
432

While using the bulid in data type float .

we get output Like 123.440000000000000000000+e0

i just want to print upto 2 places of deicmal.

please help.

3 REPLIES 3
Read only

Former Member
0 Likes
404

Hi,

Declare a variable of type p decimals 2 and pass the float value to p variable. And write p.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
404

Hi Lokesh,

use statement:

write variable_name decimals 2.

where variable_name is of type f or p.

Regards,

yellappa.

Read only

Former Member
0 Likes
404

Hi Lokesh,

Move the field before output to a packed field with 2 decimals.

Regards,

John.