News for hackers. Stuff that matters.
Re:Is there any point to the 12 times table? by dnautics on Monday January 04, 2016 @05:43PM (#10839318)
depends. If you're running a simulation in physics, e.g. n-body problem, you can choose your parameters to be exact to start off with, and rescale your units to be exact. Moreover, even if you start with measurement error, the error moves in generally a predictable fashion, so it tends to be O(1). A floating point roundoff error is a martingale, with O(sqrt(N)) - unless you "always round up" or "always round down" which is O(N). In the initial domain, the measurement error dominates, but over time fp roundoff gets bigger.
Re:Is there any point to the 12 times table? by btilly on Monday January 04, 2016 @06:18PM (#10839543)
It still depends. Many simulations in physics are of chaotic systems where the initial measurement error grows exponentially over time and quickly exceeds fp roundoff. Other simulations (for example this comes up in fluid mechanics) can have discretization errors feed back on themselves in an unstable way resulting in artifacts that quickly overwhelm the simulation.

This is a complex topic, with ongoing research across multiple fields of study.

That said, floating point is a "good enough" default for a surprisingly wide variety of situations.