Hacker News new | ask | show | jobs
by uuidgen 1610 days ago
If you need to be precise with real numbers you need to use interval arithmetics to know your uncertainty range. Or you need infinite memory.

For C++ there's a nice boost::numeric::interval library that handles it.

https://www.boost.org/doc/libs/1_66_0/libs/numeric/interval/...