Jump to content


Photo

Help with number addition


  • Please log in to reply
1 reply to this topic

#1 element1

element1
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 17 April 2006 - 03:26 AM

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?

#2 ypirc

ypirc
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 17 April 2006 - 04:57 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users