Jump to content

Help with number addition


element1

Recommended Posts

I'm trying to add numbers in an accounting script that I wrote. I'm taking stored values from the mysql db and trying to add them up, however, when I add them up, they're dropping zeros from the number. For instance, 195,000.00 Turns to 195.00
The number being stored in mysql are in correct, but the sum that is returned is not. Any ideas why?
Link to comment
https://forums.phpfreaks.com/topic/7575-help-with-number-addition/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.