Gets the name of a number, even if it's stupidly big. Supersedes TheoryOfNekomata/number-name.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.3 KiB

Some inputs to consider:

  1. 1/2 converts to one half. When only lazy is enabled, it converts to one over two.
  2. 5/10 or 0.5 or .5 (on en-US or en-PH) converts to five tenths. When simplify is true, it converts to one half. When only lazy is enabled, it converts to five over ten.
  3. 1e-2 converts to one hundredth. It follows by one thousandth, one millionth, one billionth, one trillionth etc.
  4. 2/1e+2 converts to two hundredths. 2/2e+2 converts to two two-hundredths.
  5. Should we enable 1e+(1e+100) inputs? “googolplex”
    1. Should we enable 1e+1/10?
    2. Should we enable 1e+1/1e+2?
    3. Should we enable 1e+(1e+1)/10?