the fast number speller program
Currently supported languages are:
-
English
-
Bahasa
-
VS Studio 2015
- Download or clone this repository
- Launch VS2015
- Click File -> Open -> Project/Solution
- Select NumberSpeller.sln file
- Press Build/Build Solution or F7
- An executable named 'numspel' should be in Debug directory (or x64/Debug directory if building for 64 bit target)
-
Qt Creator
- Download or clone this repository
- Launch Qt Creator
- Open File/Project
- Select NumberSpeller.pro file
- Press build button or CTRL+B
- An executable named 'numspel' should be in the same location as project directory
-
Given a number from 0 up to maximum 999,999,999,999
e.g: 1234567
-
Splits your number into triples starting from the rear
i.e: 1234567 becomes 1, 234, 567
-
Translates each triple
1 -> one
234 -> two hundred and thirty-four
567 -> five hundred and sixty-seven
-
Assigns each triple its unit name based on its position
1 -> "million"
234 -> "thousand"
567 -> ""
-
Combines the translated triples into the final form
one million, two hundred and thirty-four thousand, five hundred and sixty-seven
-
Done
You need to subclass two things:
-
Language class
-
Number class
See English class and EnglishNumber class to see how number in English is implemented