January 11, 2007, 02:15 AM
Aditya.00 instead od 0.00
Hi,
I am firing a query that fetches the data from the database in which one field value is 0.00.But when the values are shown in the reports they become .00.I am not able to understand why the initial 0 value is truncated.Kindly help me.
Regards,
Aditya
January 11, 2007, 03:16 AM
PeteA.,
Just add
SET CENT-ZERO=ON
at the beginning of your report
Hope this helps
P.
January 11, 2007, 03:48 AM
AdityaThanks Pete.Its working now.
Regards,
Aditya
January 11, 2007, 05:44 AM
OPALTOSHThat's normal WebFOCUS behaviour. If you want leading zeros you can use the L edit option but then you will get lots of zeros before the decimal point.
If you specifically want to display 0.00 for a zero value then you would have to do it using DEFINEs or COMPUTEs where you convert the numeric field to an alpha.