Approximating Rational Arithmetic

One interesting topic I’ve been exploring recently is the different means for approximating rational arithmetic in computer programs. As every programmer SHOULD KNOW, floating point does not accurately model rational numbers or rational arithmetic. It comes fairly close, but the corner cases can be rather nasty. Since a rational is merely one integer divided by …

Continue reading ‘Approximating Rational Arithmetic’ »