Round output format problem!
Posted: Thu Nov 09, 2006 10:50 am
Hi there,
I do a simple round from a value of a MySQL result and i need to know how to keep the zeros....
if i have these values i get...
round(0.00001,4) => 0 .... but i want it to be displayed as 0.0000
is there a way to format the output of a round to keep the zeros? Other than doing a function to do so...
thx
I do a simple round from a value of a MySQL result and i need to know how to keep the zeros....
Code: Select all
round($row->value,4)round(0.00001,4) => 0 .... but i want it to be displayed as 0.0000
is there a way to format the output of a round to keep the zeros? Other than doing a function to do so...
thx