News for hackers. Stuff that matters.
Re:Show HN: Convert a number to an approximated text expression by pbhjpbhj on Sunday April 26, 2020 @09:59AM (#22987178)
Isn't "one hundred thousand factorial" a more useful conversion? Would your conversion ever find utility?

Aside, this is why French style punctuation with a space before ? or ! is superior.

Re:Show HN: Convert a number to an approximated text expression by benibela on Sunday April 26, 2020 @11:41AM (#22987912)
I did not write it to be useful. I just wanted to say it can handle large integers.

I am implementing the XPath standard. The standard says there need to be a function to convert integers to English, but it does not specify an upper limit on the integers

Re:Show HN: Convert a number to an approximated text expression by pbhjpbhj on Sunday April 26, 2020 @12:07PM (#22988100)
Cool, IMO that makes it potentially useful (but being useful isn't required of course).

Out of curiosity, what part of the spec does that implement? Is it to do with fn:format-integer.

Re:Show HN: Convert a number to an approximated text expression by benibela on Sunday April 26, 2020 @04:11PM (#22989814)
Here is the function standard: https://www.w3.org/TR/xpath-functions-31/#func-format-intege...

Number formatting is really complicated