Switched from using Double for numbers to Rational