Hacker News new | ask | show | jobs
by utxaa 2309 days ago
you never really deal with irrationals ... do you mean floating point?
1 comments

Nope, specifically meant irrationals.

Floating point (up to a certain amount of absurdity) you can describe with integers (value, scale).

Real numbers you can describe with integers (numerator, denominator, scale).

Irrationals are more difficult. That's why we try not to use them :). Hopefully your company's commission tiers are not defined in terms of circles or euclidean distances.