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

In spirit you are right.

Alas, floating point arithmetic is not necessarily deterministic in the sense that running the same Python or C code twice is guaranteed to give you the some results.

First, your compiler is often allowed to do weird things. (Like compile the same code in different ways.) And there's some weirdness with the state of flags that might be different from iteration to iteration.

See https://randomascii.wordpress.com/2013/07/16/floating-point-... for some more information.



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

Search: