tag:blogger.com,1999:blog-9076986602227142053.post1144428518446439848..comments2024-01-12T16:38:53.349+05:30Comments on ozinisle: Is 0.1+0.2==0.3Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9076986602227142053.post-32832810283414177522011-06-18T02:11:43.934+05:302011-06-18T02:11:43.934+05:30Believe me.... i meant it. But still... I think we...Believe me.... i meant it. But still... I think we should be able to handle this . After all the compilers are man made and these issues must have a pattern. Some tinkering and caution should help us SAVE THE WORLD (lol)Karthikeyan Alagirisamyhttps://www.blogger.com/profile/14135230008737125877noreply@blogger.comtag:blogger.com,1999:blog-9076986602227142053.post-74948267836716973032011-06-18T01:30:53.703+05:302011-06-18T01:30:53.703+05:30Hope people and business dont face catastrophe cos...<i>Hope people and business dont face catastrophe cos of this</i><br /><br />Well, unfortunately they do. Look at home-grown applications developed to deal with currency values for example. Many corporate developers screw this right up.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9076986602227142053.post-39440106061806525372011-06-18T00:53:18.382+05:302011-06-18T00:53:18.382+05:30Yes it is. I am puzzled. Hope people and business ...Yes it is. I am puzzled. Hope people and business dont face catastrophe cos of this. But the positive side, that is an awesome stuff.... Thats a really big number to test with... Is this one a accidental discovery or a planned attempt ????<br /><br />Either ways I am amazedKarthikeyan Alagirisamyhttps://www.blogger.com/profile/14135230008737125877noreply@blogger.comtag:blogger.com,1999:blog-9076986602227142053.post-43463129520678188662011-06-17T17:03:50.986+05:302011-06-17T17:03:50.986+05:30This is a mathematical oddity caused by the fact t...This is a mathematical oddity caused by the fact that 0.1 cannot be expressed exactly in binary 0.1 in bin is 0.0 0011 0011 0011 0011 0011 ... (try it out here http://www.exploringbinary.com/binary-converter/) a similar thing happens with 11111111111111113 == 11111111111111111 resolves to true because the highest bits are truncated and both 11111111111111111 and 11111111111111113 become Anonymoushttps://www.blogger.com/profile/09211785785682223613noreply@blogger.com