Raised This Month: $ Target: $400
 0% 

Floats and Decimal Rounding


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Politics
Junior Member
Join Date: Nov 2006
Old 11-09-2006 , 05:14   Floats and Decimal Rounding
Reply With Quote #1

I have a float being called from a SQL row which has the value of 5.05 but it is apparently 5.0499999 when it is stored in the float I have made. How can I make it so that is stored as 5.05 not 5.0499999.
Politics is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode