drlippman / IMathAS

IMathAS Online Math Assessment
Other
113 stars 99 forks source link

Adds option for bar over last non-terminating, significant zero #284

Closed nick-chura closed 3 years ago

nick-chura commented 3 years ago

This adds an option in prettysigfig() for displaying line over last non-terminating, significant zero, such as in the 1st and 3rd items in the first list here. That is, it will put a bar over the first zero in 6700 to indicate three significant digits, and will put a decimal point at the end of 6700 to indicate four significant digits. Works whether or not a comma symbol/string is set.

These commits also fix an issue where unsetting a comma symbol would make 400000000000000000 display like 400000,000,000,000,000 if, say, 4 sigfigs is set in prettysigfig().