Convert Numbers money to words in VB net

Опубликовано: 17 Май 2026
на канале: KgadSoft
1,182
0

A lot of programs and code on converting numbers to words can be found everywhere on the internet but I decided to make my own. I came up with my own ideas while I was working with an accounting application which contains a check writer module that needs to convert the entered value to words. And here now, I am sharing with everyone.

This program contains neat code on how to convert numbers to words. To minimize the lines of codes, I used a recursive function.

The logic is simple:

Segregate the whole numbers in sets with 3-digit numbers each.
Determine the ones, tens and hundreds of each digit in the sets and put the corresponding word for each.
Determine what set should be the thousand, million, billion, until quintillion, then put the corresponding word.
If decimal numbers exist, determine also the tenths and hundredths and put the corresponding word. (If greater than tenths, say thousandths (3-digit value) or millionths (4-digit value), the decimal value is rounded off to hundredths only, that's 2-digit decimal value.)
Combine the evaluated statements and display the result.
download :
http://opensource.mam9.com/t235-topic...