Hacker News new | ask | show | jobs
by thegeomaster 1150 days ago
What do you mean by "taking the square root"? sqrtps has exactly the same problem, it's not standardized, so you need a custom algorithm.
2 comments

Sqrt is standardized by IEEE, it is required to be the correctly rounded value.
square root is an IEEE 754 basic operation, correctly rounded (and therefore bitwise reproducible) on all compliant systems. What made you think that it isn't?