[ww-bugs] Bug 2632: New: Bad generation of dollar amounts.
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Sun Jun 9 04:06:58 EDT 2013
http://bugs.webwork.maa.org/show_bug.cgi?id=2632
Summary: Bad generation of dollar amounts.
Product: Problem libraries
Version: unspecified
Platform: PC
URL: Precalc/Chap1Sec4/Q40.pg_with_problemSeed=1596
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Library
AssignedTo: jj at asu.edu
ReportedBy: sdenton4 at gmail.com
Web browser Chrome
version:
When generating a dollar amount, the problem tries to insert a comma at between
the hundreds and thousands position, for example, $15,072. However, if the
hundreds position contains a 0, we instead get $15,72. (The code gets the 1's
through 100's parts by doing something like int(x/1000); obviously this drops
any initial zeroes.)
A good fix might be to turn the number 15072 into a string and insert a comma
in the appropriate places.
--
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the webwork-bugs
mailing list