Forum Moderators: coopster

Message Too Old, No Replies

echoing significant digits

         

Sarah Atkinson

4:18 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



Is there away to control the number of significant digits on an int? So that if I have 1, 1.75. 1.333333. 1.125 I can have them printed out as
1.000, 1.750, 1.333, 1.125?

Sarah

sned

4:37 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



Would you be able to use round [us2.php.net] or number_format [us2.php.net]?

-sned