Hi All! I am having some issues with the fraction context not allowing decimal approximations. For example, even if I set the absolute tolerance to be 0.1, it will not accept 0.38 for 3/8. However, it will accept the exact decimal, 0.375. Please see the code below and the attached screenshot.
Any idea why it won't take decimal approximations? Thanks!
DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", "contextFraction.pl", ); TEXT(beginproblem()); Context("Fraction"); Context()->flags->set(tolerance => 0.1, tolType => "absolute"); $ans = Fraction(3,8); BEGIN_PGML [`3/8 = `] [__]{$ans} END_PGML
ENDDOCUMENT();