Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Bing gives 1 though!


So duckduckgo uses the normal 64bit floating point, and the clever people at bing automatically switch to bignums when needed. But I have no idea what google does to get that 0?


I think Google is truncating the numbers. You get 0 even if you do:

9999999999999999 – 9999999999999990


    9999999999999999 - 9999999999999971 ==  0
    9999999999999999 - 9999999999999970 == 30
    9999999999999999 - 9999999999999969 == 32
    9999999999999999 - 9999999999999966 == 34




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: