03-07-2009 11:06 AM
Hi experts.
I have a variable X(type C) = 12345.00 in print program and would like to remove zeros after decimal value to display the same in existing form [based on requirement].
plz help me.
03-07-2009 12:07 PM
03-07-2009 11:12 AM
Hi Sriram,
If you dont want to display the ZEROS after decimals at all then move the contents of the variable to an Integer variable.
This will automatically remove zeros.
Regards,
Prakash Pandey
03-07-2009 12:07 PM
03-07-2009 12:18 PM
hi use like this ...
&VBRP-FKIMG(.0)& will give no decimal places
&VBRP-FKIMG(.2)& will give two decimal places
03-07-2009 12:27 PM
thanks boss..you have given excellent solution to my problem,but one more suggestion is required for the same...
How to round off the value in the lay out itself without do any chnges in print program?!
My requirement is: remove zeros after decimal by rounding the value in layout display.
For Ex; &varr& = 123.50 should be shown as 124 in layout
03-07-2009 12:30 PM
thanks boss.for your suggestion,still i require further suggestion to close myrequirement.
How to round off the value in the lay out itself without do any changes in print program?!
My requirement is: remove zeros after decimal by rounding the value in layout display.
For Ex; &varr& = 123.50 should be shown as 124 in layout
03-07-2009 12:44 PM