|Links to HEAD:||(view) (download) (as text) (annotate)|
Backward port of minor corrections from HEAD
This commit was manufactured by cvs2svn to create branch 'rel-2-4-patches'.
merging with HEAD 6/23/2008 see Value.pm for list of significant changes
This commit was manufactured by cvs2svn to create branch 'rel-2-4-dev'.
Added trimTrailingZeros flag to allow values to print as $50 rather than $50.00
Make sure Currency() actually returns a Currency object (it used to return a Real if one was passed to it).
added standard copyright/license header
fixed indentation of verbatim paragraphs: now using hard tabs exclusively. the downside of this is that these get rendered as eight-column tabs.
improved formatting for docs -- these were in pod sections but were all formatted as verbatim sections, and i moved them into normal paragraphs, lists, etc. should make things more readable from the web.
One last change to make hardcopy work properly.
Make sure comma's are represented correctly in TeX mode. (They need to be enclosed in braces to get the spacing right.)
This was accidentally removed in the last update. OOPS!
Handle TeX special characters better when used as the currency symbol. (Quote them when displayMode is TeX.)
Add context names for the context(s) created here.
Added context flags to more finely control the allowed entry format (e.g., force the use of commas, force the use of decimal places, and so on.) See the documentation at the top of the file for details.
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.)
Updated calls to Parser::Context->getCopy to remove unneeded undef argument.
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.)
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.
|aubreyja at gmail dot com||ViewVC Help|
|Powered by ViewVC 1.0.9|