Germans count reverse ;-) -- the don't say: twenty-one, but: one and twenty.
The detail in front, big units thrown afterwards.
Further they group all below one thousand together, hundreds in front of the
details, and then name the 10 ^ 3 unit afterwards.
In the attached 'afternoon fun' are two versions of the names for numbers.
Some contain special char above ASCI 127, so called 'Umlaute' with two dots
above -- they are spoken and can be written like appending an 'e'. Example:
'ö' = 'oe'.
But depending on codepage, they maybe displayed wrong -- so if you want with
'Umlaute', change the '#if 0' to a '1' ...
Further like to spell big numbers, especially for that such is good -- so i
wrote a sol10() without using hb_ntos(). Because Harbour can handle very ! big
numbers, then only loosing the precision in the lower than 16 digits once the
number got bigger than 19 digits, or to be precise: > 9223372036854775807
First test looks quite ok me, if you want to counterproof or add bigger number
names: http://de.wikipedia.org/wiki/Zahlennamen
That was what you searched for ??
At least good for my fun ... :-)
best regards
Rolf
addendum:
one little typo left with the not tested branch:
"Zwannzig" is wrong with double 'n' -- "Zwanzig" correct.
[ was too fast typing ... ;-) ]
You sure can easy correct this ...
best regards
Rolf
--
Thanks. It's not for me. Send to someone, let them try.
Regards,
Marek Horodyski