Revision
4666 -
(
view)
(
download)
(
as text)
(
annotate)
-
[selected]
Modified
Sun Nov 26 21:57:39 2006 UTC (6 years, 5 months ago) by
dpvc
File length: 824 byte(s)
Diff to
previous 2731
Updated NumberWithUnits to use Parser::LEgacy::NumberWithUnits rather
than having a separate implementation here. This will guarantee that
it is consistent with num_cmp() and prevents unneeded duplication of
code.
Revision
2731 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Sat Sep 4 20:40:43 2004 UTC (8 years, 8 months ago) by
dpvc
File length: 3647 byte(s)
Diff
to
selected 4666
This file defines a NumberWithUnits class for that provides an answer
checker for numbers with units. It uses the same units package that
the standard answer checkers use, but this will eventually be replaced
by a more complete Units class within the parser itself. The class
produces a preview string in which the units show appropriately.