numbers to words converter formula

Is there a formula, code i can use to convert large numbers into words?
E.g. 315,000,000,000,000,000,000 = Three hundred fifteen quintillion

There is the extension NumberText: Numbertext » Extensions with its focus on money amounts. Since I never use it, I don’t know in what way it treats “huge” numbers.

Anyway: Don’t do it, don’t try it. There are already by far enough, in fact much too many, useless complications concerning locales. Large numbers are specifcally problematic even in a ‘Western’ scope, because US stubbornness inists on a different usage of words like your “quintillion”. The older well established usage still prevailing in Europe and many other countries would read 1 quintillion = 10^30 (1E30) while US usage misses the “-ards”, and goes by steps (factors) of 10^3 basing in a skew way on the million which is 10^6. Thus 1 quintilion = 10^18 in the USA. Omit additional confusion. Let it be! The so-called scientific format is the appropriate way to communicate large and small numbers, and numbers in-between, too, in many cases.

Currently it is a native option in LibreOffice.

New “spell out” NatNum modifier (LibreOffice 6.1)

Displaying Numbers Using Native Characters

Sample file Numbers as Text

Well, things get worse every day. Now I have “three hundred and fifteen quintillion” for 315E18 in a cell with locale en-UK and format code [NatNum12 cardinal]0 despite what Merriam-Webster and also wikipedia tell me: Quintillion | Definition of Quintillion by Merriam-Webster, Names of large numbers - Wikipedia.
When will we get rid again of this ambiguous nonsense. Use global standards for numbers!.
If we don’t the less rational variant seems to win inevitably.
When will we be back to miles an inches everywhere? Let’s replace ISO A4 with ‘Letter’?

It’s done following https://numbertext.github.io/ (release notes), so if it is not right maybe, add there your question. In any case what we would be in a perfect world?, let a bit of space to imperfections, although I agree that perhaps there are too much.

Don’t misunderstand my wording please. I may sound intolerant sometimes, though I don’t think I am.
I simply feel there shouldn’t be as many retrograde steps as we seem to do. Ambiguous ways of communication are bad. Am I wrong telling this? Am I arrogant if I repeat it?
I’m 76. It will no longer be my world what may suffer from the regressions I complain about.

It’s fine, everyone is free to express themselves as they wish, so if you are it’s your right, because it’s not how I see it, sure who didn’t know to express right certain irony was me. We are not the same generation but only fourteen year of difference, I think a lot less than with most people here. Hope one day we can share a glass.

Hope one day we can share a glass.

Great idea. You living in Spain?
Well, I was there twice in 2014 (first time a motorbike tour, then seeing Barcelona, topic Gaudí), but I was already 69 then. I cannot be sure to get there a third time. In fact I’m pretty sure I won’t. Simply come to München “after Corona”.

Right, A Coruña. I want to be confident that things change enough for make it possible.