From: dpvc v. a. <we...@ma...> - 2010-02-07 10:45:22
|
Log Message: ----------- Corrected interpretation of 0 a/b (thanks to Adam Weyhaupt) Modified Files: -------------- pg/macros: contextFraction.pl Revision Data ------------- Index: contextFraction.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/contextFraction.pl,v retrieving revision 1.10 retrieving revision 1.11 diff -Lmacros/contextFraction.pl -Lmacros/contextFraction.pl -u -r1.10 -r1.11 --- macros/contextFraction.pl +++ macros/contextFraction.pl @@ -404,7 +404,7 @@ # sub _eval { my ($self,$a,$b)= @_; - return ($a > 0 ? $a + $b : $a - $b); + return ($a >= 0 ? $a + $b : $a - $b); } # |