Calculating Percentages

liunx

Guest
Does anyone know how to calculate percentages? The client wants ther percentage to always be displayed as - for example - 0.100 instead of 0.1, 0.110 instead of 0.11, or if there's three digits, 0.111, et cetera. The value always has to have three trailing digits.

I'm not sure to go about doing this because the value is taken from the database and it always gets rid of any trailing zeros. I also don鎶
 
Back
Top