Jump to content
Attila Kovacs

is there any "currency to words" routine for Delphi?

Recommended Posts

Guest

In hebrew, as maybe in russian, 11 is "1 and 10", 12 is "2 and 10". Germanic languages (and i include english, yes) have that; "Twelve" not "2-teen" or "2-ten". I do not have any etymological proof, but as you suggest @Fr0sT.Brutal, an old economy based on 12 and 20 is very likely behind these things. In "old" swedish at least; "dussin" = 12, "Tjog" = 20. Messy! Lucky us to have been born late enough.  Oh, and a british "draftsman" hired a desk across me for half a year and i was on about the metric system. She agreed; "The "1 and 1/18th inch" is old shit." she said.

 

Once more admins; a "Language" sub-forum. No?

Share this post


Link to post

At least those old numeric systems were activating the mental arithmetic in everyday life.

Share this post


Link to post
Quote

"The gold ones are Galleons," he explained. "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it's easy enough "

© JK Rowling, HP & Philosopher's stone.

That's all what should be said about English measure system 😄

  • Haha 1

Share this post


Link to post

The code in Delphi Knowledge Base by unknown author and Mr. KRISHNA SAPKOTA

https://delphi-kb.blogspot.com/2007/06/converting-numbers-to-words.html

 

The concept in stackoverflow in Java and Python

https://stackoverflow.com/questions/3299619/algorithm-that-converts-numeric-amount-into-english-words

 

An interesting article is How to Write Numbers in Words on a Check

https://www.thebalancemoney.com/write-numbers-using-words-4083198

 

 

Share this post


Link to post

Write in words this number in English, French, Russian, Danish, Swedish, Dutch and chinese: 6732901234.

Here is how the number 6,732,901,234 is written out in words in each of the requested languages:


English

Six billion, seven hundred thirty-two million, nine hundred one thousand, two hundred thirty-four


French

Six milliards sept cent trente-deux millions neuf cent un mille deux cent trente-quatre


Russian

Шесть миллиардов семьсот тридцать два миллиона девятьсот одна тысяча двести тридцать четыре
(pronounced: shest’ milliardov sem’sot tridtsat’ dva milliona devyat’sot odna tysyacha dvesti tridtsat’ chetyre)


Danish

Seks milliarder syv hundrede toogtredive millioner ni hundrede og en tusinde to hundrede fireogtredive


Swedish

Sex miljarder sju hundra trettiotvå miljoner nio hundra ett tusen två hundra trettiofyra


Dutch

Zes miljard zevenhonderdtweeëndertig miljoen negenhonderdéén duizend tweehonderdvierendertig


Chinese (Simplified)

六十七亿三千二百九十万一千二百三十四
(pronounced: liù shí qī yì sān qiān èr bǎi jiǔ shí wàn yī qiān èr bǎi sān shí sì)

 

image.png.6b4a797db5303df32fcd9f3cf0eeff46.png

Edited by Die Holländer

Share this post


Link to post
1 hour ago, Lars Fosdal said:

Why are you reawakening ancient posts, @AlexMrtn?
And why post AI slop, @Die Holländer? 

Sorry for bothering you.

These days I have been to use the function.

The first Google result was on delphipraxis.

I decided to add the post.

 

2 admin: pls delete my 2 posts if they are pointless

 

 

Share this post


Link to post
1 hour ago, Tommi Prami said:

Just out of curiosity wheree this is actually needed?

Some country/Culture/Local law related thing?

As always, our accounting dept needs in a new form of a customer's statement of account.

 

P.S.

@Tommi Prami: Thank you for reviving the DecimalRound lib by John Herbster.

Edited by AlexMrtn
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×