Skip to content

Loen10/cpp-number-to-engl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number to English

This is command line application that converts numbers (-12345.6789) to their english counterparts (negative twelve thousand three hundred forty-five and six thousand seven hundred eighty nine ten thousandths).

It supports negatives, decimals, leading and trailing zeros, trailing garbage (123al;djfljdadf -> one hundred twenty-three), and numbers up to 10^36 - 1 on either side of the decimal, this is after extra zeros are removed.

In the future, I plan to support a much wider range of numbers up to 10^66 - 1 and even scientific notation, within that range.

No string copies or alterations are made other than appending to the english conversion as it parses the number. It relies heavily on pointer arithmetic and uses custom parsing methods to account for numbers greater than 2^64 - 1 and for decimals.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published