Thread: decimal
View Single Post
 
Old October 18th, 2005, 12:11 AM
harpua harpua is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default decimal

Can somebody please tell me what is happening here. I am posting a price from a form then putting it into a session.

$_SESSION['item_total'] = $_POST['item_total'];

echo $_POST['item_total'] . "--posted total<br>";
echo $_SESSION['item_total'] . "--session total<br>";

when i write it out this is the result what is happening to the .97
9.97--posted total
9--session total

Thanks in advance
mike
__________________
Peace
Mike
http://www.eclecticpixel.com