[system] / trunk / pg / macros / contextCurrency.pl Repository:
ViewVC logotype

Log of /trunk/pg/macros/contextCurrency.pl

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 5373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 02:01:57 2007 UTC (12 years, 3 months ago) by dpvc
File length: 15318 byte(s)
Diff to previous 5370
Normalized comments and headers to that they will format their POD
documentation properly.  (I know that the POD processing was supposed
to strip off the initial #, but that doesn't seem to happen, so I've
added a space throughout.)

Revision 5370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 00:48:19 2007 UTC (12 years, 3 months ago) by dpvc
File length: 15274 byte(s)
Diff to previous 5344
Updated calls to Parser::Context->getCopy to remove unneeded undef
argument.

Revision 5344 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 17 16:11:55 2007 UTC (12 years, 3 months ago) by dpvc
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 (12 years, 3 months ago) by dpvc
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.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9