‎2008 Feb 21 12:32 PM
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.
‎2008 Feb 21 12:34 PM
Hi,
Declare a variable of type p decimals 2 and pass the float value to p variable. And write p.
Thanks,
Sriram Ponna.
‎2008 Feb 21 12:35 PM
Hi Lokesh,
use statement:
write variable_name decimals 2.
where variable_name is of type f or p.
Regards,
yellappa.
‎2008 Feb 21 12:36 PM
Hi Lokesh,
Move the field before output to a packed field with 2 decimals.
Regards,
John.