WeBWorK Problems

Setting new symbol in Currency context

Re: Setting new symbol in Currency context

by Alex Jordan -
Number of replies: 0

I can confirm this is an issue in 2.18. Here is an MWE:


DOCUMENT();
loadMacros(qw( PGstandard.pl PGML.pl contextCurrency.pl));

Context("Currency")->currency->set(symbol=>'!');   
$a = Currency(1000);
 
ENDDOCUMENT();