Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-12-2010, 08:50 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Strange Number/Rounding Issues

I've been working with small numbers recently, and I've come across this issue:
PHP Code:
echo(0.0009 == 0.0008); // 1 
Seemed like a simple precision issue at first... but:
PHP Code:
echo(0.00091 == 0.00080); // 0
echo(0.00091 == 0.00081); // 0
echo(0.000911 == 0.000812); // 1 
I have no idea what the pattern is, but it is currently giving me a lot of trouble.
Reply With Quote
Reply


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 +2. The time now is 01:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.