Type cast a number to 3 digit float
Posted 11 September 2006 - 02:21 AM
$i = 7;
i want 7.00
Posted 11 September 2006 - 03:56 AM
Do you mean signifigant figures?
How about .00002323 do you want .000 or do you want .0000232
provides some functionality you might find useful.
Posted 11 September 2006 - 01:11 PM
number_format() may also be of use.
that's probably your best bet since it returns a float with the exact precision you request.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users