TOPIC: Number Format to print leading zeros
#300
Number Format to print leading zeros 4 Years ago
Hello,
If NumberFormat is given a mask "##.##" and value 0.56, the 0 before the decimal place is not printed. Is there a way to make it print the 0 (or as many 0s as indicated by the mask) before the decimal place?

Thanks in advance,
ajith
 
 
#303
Re:Number Format to print leading zeros 4 Years ago
Hi Ajith,

NumberFormat will always disgard leading zero's. You could preceed the mask with a space " ##.##", but that would show all leading zero's.
You could also have a look at the FixNumControl in stdlib. But this one does more than only dealing with this and only works a fixed number of digits (hence the name).

Jos