PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
lamerac
Forum Newbie
Posts: 1 Joined: Fri Apr 07, 2006 7:33 pm
Post
by lamerac » Fri Apr 07, 2006 8:22 pm
Hi there?
does anyone here know about php computaion that will compute values after comma format and decimal points?
any response would be greatly appreciated!
thanks,
mel
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Fri Apr 07, 2006 8:23 pm
How precise should the calculation be? General recommandation is to use
bc .
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Apr 07, 2006 8:33 pm
strip the commas and feed it to bc, like timvw suggests.