Changelogs » Numtxt

PyUp Safety actively tracks 267,270 Python packages for vulnerabilities and notifies you when to upgrade.

Numtxt

1.2.2


        

1.2.1

Restored approx handling of small values.

1.2.0

Fixed si handling of zero, made public three functions previously added (gen10_dict, gen1k_dict, table); added formatting option to approx function.

1.1.1

Added si function (1234567890 -> '1.235 G'), version string, unmentioned functions (gen10_dict, gen1k_dict, table) and minor cleanup

1.1.0

added precedence (primary, secondary, tertiary, ...), (t)uple (single, double, triple, ...) and prefix functions. numtxt.log can now be overridden by third-party modules (e.g. gmpy2, mpmath) for compatibility:
  
  >>> numtxt.log = gmpy2.log
  >>> numtxt.approx(gmpy2.exp(1234567))
  '432.155 octoseptuagintacentillivigintiseptingentillion'

1.0.2

approx now doesn't crash when given 0

1.0.1