Subtracting Money

From: Date: Fri, 15 Nov 2002 01:24:00 +0000
Subject: Subtracting Money
Groups: php.general 
Request: Send a blank email to php-general+get-124552@lists.php.net to get a copy of this message
I'm having a problem. I need to subtract money, but if they type in an ammount such as $2.30 and I subtract $0.20, instead of returning $2.10 like it should, it returns $2.1. How can I fix this keeping in mind that other variable could be $2.40 or $100.30 and so on...? Thanks, Stephen Craton http://www.melchior.us "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us

« previous php.general (#124552) next »