Skip to content

Releases: Rockhopper-Technologies/prefixed

0.9.0

02 Sep 18:59
Compare
Choose a tag to compare

Changes

  • The micro symbol ('µ'), U+00B5, is now accepted as a valid prefix when creating prefixed.Float objects from strings
    • Output will still use the lowercase Greek letter mu ('μ'), U+03BC
    • This complies with the preference defined in Unicode Technical Report #25 section 2.5
    • A note was added to the documentation for reference

0.8.0

09 Aug 12:50
Compare
Choose a tag to compare
  • Bugfixes
    • Rounding was not accounted for when determining prefixed
      • For example, f'{Float(9.999999999e-10):.2H}' returned 1000p rather than 1n
      • Rounding is now accounted for when determining prefix

0.7.1

19 Apr 19:10
Compare
Choose a tag to compare

Housekeeping

  • Metadata updates

0.7.0

25 Jan 23:35
Compare
Choose a tag to compare

Changes

  • Magnitude values are read from a dictionary rather than computed
    • This should result in faster and more consistent behavior

0.6.0

15 Jan 17:43
Compare
Choose a tag to compare

Changes

  • Consistent behavior for ! flag

    • The ! flag used to drop the space when no prefix was added to the output
    • This created issues in cases like f'{Float(123):!.3H}J' #4
    • ! will now always add a space after the number
  • New flag !!

    • The new flag !! operates like !, adding a space between the number and the prefix
    • !! will drop the space if no prefix is added to the number
    • See the documentation for more information

0.5.0

21 Nov 16:53
Compare
Choose a tag to compare

Changes

Bugfixes

  • In some circumstances significant digits were one decimal place off
    • Caused by floating point variance
    • Value is now constrained prior to determining significant digits

0.4.2

03 Nov 13:24
Compare
Choose a tag to compare

Bug Fixes

  • Deprecated format specifiers 'j' and 'J' were not properly handled when passed as Unicode in 2.7
    • Fixed and test added to catch regressions

0.4.1

03 Nov 04:24
Compare
Choose a tag to compare

Bug Fixes

  • Deprecated format specifiers 'j' and 'J' were not properly handled
    • Fixed and test added to catch regressions

0.4.0

27 Oct 22:58
Compare
Choose a tag to compare

Changes

  • Add Significant digit support
    • 'H' (SI), 'K' (IEC), and 'M' (IEC short) presentation types treat precision as significant digits
    • Trailing zeros are dropped by default, use '#' to preserve
  • 'j' (IEC) presentation type replaced with 'k'
    • 'j' still works, but is deprecated
  • 'J' (IEC short) presentation type replaced with 'm'
    • 'J' still works, but is deprecated
  • Dropped support for Python 3.4

Housekeeping

  • Moved to GitHub Actions
  • Rename master to main

0.3.2

31 Aug 23:46
Compare
Choose a tag to compare

Changes

  • No longer accept arbitrary characters after prefix in input strings
  • Accept a single space between value and prefix in input strings

Bug Fixes

  • Base for IEC values was incorrect in documentation