messer Posted May 8, 2009 Share Posted May 8, 2009 Sorry for my question: how to make to show correct the result of an mathematical operation?? for example: $total=450.00; $incl_total=($total*2)/3; echo' .$incl_total. ' ; in this example the result will be $incl_total= 300; but I need $incl_total=300.00 How to do so??? Link to comment https://forums.phpfreaks.com/topic/157360-math-problem/ Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 Uh, that example should just print out " .$incl_total. " as is. ??? Use number_format Link to comment https://forums.phpfreaks.com/topic/157360-math-problem/#findComment-829440 Share on other sites More sharing options...
messer Posted May 8, 2009 Author Share Posted May 8, 2009 ok , thx ... Link to comment https://forums.phpfreaks.com/topic/157360-math-problem/#findComment-829451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.