Jump to content

Archived

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

element1

Help with number addition

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?

Share this post


Link to post
Share on other sites
Can you please ellaborate? Show us the data you are trying to add, show us how you are trying to add it, etc... We need a better explanation than the above to even begin trying to help you solve your problem.

Share this post


Link to post
Share on other sites

×

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.