erosson / swarm-numberformat

Format large numbers in several human-readable ways. Designed for incremental games like swarmsim.
https://erosson.github.io/swarm-numberformat/
MIT License
89 stars 10 forks source link

support {sigfigs:undefined} #15

Closed erosson closed 7 years ago

erosson commented 7 years ago

or {sigfigs:null}, so the number of sigfigs shown is only based on the number itself - no added zeros

related: https://www.reddit.com/r/swarmsim/comments/5ot1zs/bug_achievementdescription/

this already happens to work for most numbers, but doesn't work for scientific notation. Add tests confirming it.