RE: [PHP] Precision value in PHP??

2003-08-14 Thread Chris W. Parker
Scott Fletcher mailto:[EMAIL PROTECTED] on Wednesday, August 13, 2003 10:27 AM said: When I do this calculation, 77 * 2.00 = 154.00 but with PHP, it return only 154. So, how do I set the precision value. Use the number_format() function. Works just like you want. echo

Re: [PHP] Precision value in PHP??

2003-08-14 Thread Chris Boget
When I do this calculation, 77 * 2.00 = 154.00 but with PHP, it return only 154. What do you get if you do: 77 * 2.01? for the .00, you might want to look into using number_format(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: