elm-round
elm-round copied to clipboard
Added roundSig
I found it useful to round a float to a given number of significant digits, i.e. roundSig 3 1234.5 would give "1230" while roundSig 3 1.2345 would give "1.23". I need this because I'm working with exponential scales. I thought it might be a simple but useful extension to this module. Closes #11.
Thank you for your PR!
Would it make sense to have floorSig and ceilingSig variants also?