Log of /branches/rel-2-4-patches/pg/macros/contextCurrency.pl
Parent Directory
Revision
5344 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 17 16:11:55 2007 UTC (5 years, 9 months ago) by
dpvc
Original Path:
trunk/pg/macros/contextCurrency.pl
File length: 15249 byte(s)
Diff to
previous 5343
Incorrectly had promoteReals to 1 instead of 0 (left over from
testing). Now added promoteReals to the context in addition to the
answer cmp method, and produce error messages when computations are
performed between currency and reals. (The message is not as good as
it should be, but to do it right would require overriding all the
operators. I need to work out a better way of hooking into the type
checking mechanism for the operators.)
Revision
5343 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Aug 17 02:01:07 2007 UTC (5 years, 9 months ago) by
dpvc
Original Path:
trunk/pg/macros/contextCurrency.pl
File length: 15038 byte(s)
This file implements a context in which students can provide answers
that are monitary values. You can control the currency symbol and the
characters used for commas and decimals (for potential localization in
the future).
See the comments in the file for more details and examples.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.