[NumbersToWords] For all '19' it returns nine, instead of nineteen

Forge Component
(1)
Published on 2019-04-28 by António Pereira
1 vote
Published on 2019-04-28 by António Pereira

Hi,


There's an issue with this extension: when we want to convert any number that includes a '19' (nineteen), it returns a nine. For instance:

19 -> nine

2019 -> two thousand and nine


Thanks.

I just hoped on the component page to download (for debugging) and noticed the description of the page itself claims the 2019: two thousand and nineteen

While the try now returns the outcome as you have pointed out. Good finding.

Catarina Amador wrote:

Hi,


There's an issue with this extension: when we want to convert any number that includes a '19' (nineteen), it returns a nine. For instance:

19 -> nine

2019 -> two thousand and nine


Thanks.


Hi Catarina,


You can use below component to resolve above problem.Hope this helps.

https://www.outsystems.com/forge/component-overview/8359/numbers-to-words-with-decimal

Solution

I think the solution is to put the  >= here:

Solution