Hacker News new | past | comments | ask | show | jobs | submit login

>How is that any different from ordinary integer operations/arithmetic with ints/longs/etc...?

It is different, because you never want to take the square root of an integer.

Floats allow you to pretend you are working with sometimes inaccurate real numbers. That is the magic behind it and why fixed point arithmetic was abandoned almost immediately when floating point became fast and easily available.




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

Search: