COMPUTATION

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

Post Reply
lamerac
Forum Newbie
Posts: 1
Joined: Fri Apr 07, 2006 7:33 pm

COMPUTATION

Post by lamerac »

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 »

How precise should the calculation be? General recommandation is to use bc.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

strip the commas and feed it to bc, like timvw suggests.
Post Reply