Subject: | precision support |
Hello, been using your module and found it to be very useful,
unfortunately for me found some inconsistency and missing bits.
I hope you approve I have had a look and made some updates.
a brief of which below
* Implemented missing round style and trunc style
* corrected behaviour when exceeding the max number of suffixes
* Implemented precision (only really effective if using round_style or a
custom round)
** defaults to 1 to match existing formatting in conjunction with
precision_cutoff
* Implemented precision_cutoff to complement the existing functionality
that renders 10 as 10 but 1 as 1.0
** by default it is set to 1 (replicating existing formatting)
** set to -1 to completely disable
** it counts in digits so setting to 2 will cause 10 to be 10.0 but 100
to be 100
** this also brings numbers below the first byte boundary in-line with
this formatting (updated tests to reflect this)
Subject: | Number-Bytes-Human-0.08.tar.gz |
Message body not shown because it is not plain text.