Package: numtxt
A pure Python module that gives both full and approximate names for numbersContains functions that give the cardinal name (one, two, three, …), the ordinal name (first, second, third, …), the precedence (primary, secondary, tertiary, …) as well as approximations (23.3458e45 -> ‘23.346 quattuordecillion’) and prefixes. Has four different naming methods for powers and three different suffix styles. Additionally contains an SI prefix naming function and readable time-delta string function (7234 -> ‘2 hours, 34 seconds’).Suffix Stylesshort- Assigns ‘illion’ to names. This is the default style.10^6 = million, 10^9 = billion, 10^12 = trillion, …long- Assigns ‘illion’ or ‘illiard’ to names depending on power.10^6 = million, 10^9 = milliard, 10^12 = billion, …british- Assigns ‘illion’ and adds ‘thousand’ in front of names depending on power.10^6 = million, 10^9 = thousand million, 10^12 = billion, …Naming Methodsconway-wechsler- This system extends the normal Latin naming method indefinitely and follows Latin syntax closely. Can use long, short or British suffix styles (examples below are short style). This is the default method.10^6 = 1 million10^12 = 1 trillion10^51 = 1 sedecillion10^342 =  1 tredecicentillionnoll- This system extends the normal Latin naming method indefinitely. Can use long, short or British suffix styles (examples below are short style).10^6 = 1 million10^12 = 1 trillion10^51 = 1 sexdecillion10^342 = 1 centredecillionrowlett- This system uses Greek prefixes for names. Introduced to prevent confusion the suffix styles can cause and therefore does not use any such styles. Currently valid up to 10^2999.10^6 = 1 million10^12 = 1 gillion10^51 = 1 heptadekillion10^342 = 1 hecatodekatetrillionknuth- Radically different naming method introduced to prevent confusion the suffix styles can cause and thus does not use any styles. Inherits conway-wechsler system to extend naming scheme indefinitely (original paper stopped at 10^4194304).10^6 = 100 myriad10^12 = 10 myllion10^51 = 1000 byllion tryllion10^342 = 100 myriad byllion quadryllion sextyllionVersion History1.3.0January 20th, 2024adjusted si and approx functions to handle formatting options that include the sign (E.G. fmt=’{:+8.03f}’)add interval function, accepts a number of seconds or a datetime.timedelta object and returns a readable time duration string (E.G. 7234 -> ‘2 hours, 34 seconds’)1.2.4January 20th, 2023added new si prefixes1.2.3January 20th, 2021VERSION switched to __version__this module’s 4th birthday1.2.2October 12th, 2020fixed (again) approx handling of zero1.2.1October 1st, 2020restored approx handling of small values1.2.0August 2nd, 2020added formatting option to approx functionFixed si handling of zerotable, gen10_dict and gen1k_dict functions added in previous version made public1.1.1January 10th, 2020Added si prefix functionMinor adjustments1.1.0August 18th, 2019Added precedence function (primary, secondary, tertiary, …)Added prefix functionLog function can now be overridden by third-party modules (gmpy2, mpmath) to allow compatibilityAdded (t)uple function (single, double, triple, …)Added cardinal function call; identical to name functionAdded version history to README1.0.2November 29th, 2017Fixed approx handling of zero & removed approx handling of small values1.0.1January 20th, 2017Modified readme/setup.py for correct pip installation1.0.0January 20th, 2017Initial release