Noble Digit: Number In So Many Words

Last modified on

🏰 NOBLE DIGIT

How to Use

  • Type or paste your number on the input. The wording for the number input will be shown right away.

    This accommodates any real number expressed in standard decimal notation — positive, negative, and fractional as decimals (e.g. 0.75, not ¾).

    The process is triggered by:
    • Input change.
    • Style option change.
    • ▶️ button click.
  • There are four styles available:
    1. πŸ‡¬πŸ‡§ British.
    2. πŸ‡ΊπŸ‡Έ Formal American.
    3. πŸ‡ΊπŸ‡Έ Informal American.
    4. 🍻 Drunk Bard.
    5. πŸ”’ Number to Word.

    Because 🍻 Drunk Bard can utter inconsistent ululation, we might employ the ▶️ button to produce different result.

  • We can copy the output by clicking the πŸ“‹ COPY button.
  • To clear everything, simply delete or empty the input.

Limitation

Integer

The Noble Digit is only accurate until ten quadrillion - 2, that is 9,999,999,999,999,998 — for integer. It is because of the esteemed JavaScript's Holy Integer Protector Number.MAX_SAFE_INTEGER = 9,007,199,254,740,991

Even though it does not add up at a glance, it is what it is πŸ™‚

Decimal Point

It abides the IEEE 754 for double-precision floating-point. Hence, for floating-point, it will still be accurate until around nine quadrillion — depending on the combination of the integer and floating-point. For decimal point (denominator) beyond that, Noble Digit will certainly be tipsy.

Surely, when there's a number like 10.293764 and being worded in US Formal style, I believe there is at least one fellow needs to be politely escorted to a tavern. And that, ladies and gentlemen, how Master Drunk Bard was born 🍺

Drunk Bard