number-to-words icon indicating copy to clipboard operation
number-to-words copied to clipboard

ADD support for decimal numbers

Open grahampcharles opened this issue 3 years ago • 0 comments

I added support for decimal numbers (1.7 => one and seven tenths), per issue #9 . Also added tests; all passed.

I was thinking that a decimal call into toWordsOrdinal would raise an error, but decided to leave the current behavior (ordinal of 3.4 => third) for backward compatibility.

grahampcharles avatar Apr 27 '21 05:04 grahampcharles