Numbertext / libnumbertext

Number to number name and money text conversion libraries in C++, Java, JavaScript and Python & LibreOffice Calc Extension
BSD 3-Clause "New" or "Revised" License
68 stars 47 forks source link

[th] Wrong handling of decimal in currency conversion #64

Closed tyindeepit closed 4 years ago

tyindeepit commented 5 years ago

Conversion of currency with decimals in Thai Baht seems to ignore the last zero. The regular number conversion handle this correctly.

Example of number conversion, which already handle this correctly:

Example of currency conversion:

Tested with LibreOffice extension which I built myself using latest code 2 days ago. I didn't use the current official release which is almost a year old. I would fix and test the code myself if I know how to test the sorting algorithm without having to build the extension every time. I welcome any advice. Thank you.

laszlonemeth commented 5 years ago

Hi, I've updated the web site, so you can use the following web editor of Soros language. You can load Thai (th) module using the pop-up menu of page:

https://numbertext.github.io/Soros.html

tyindeepit commented 4 years ago

The issue has been fixed and merged into the base code as per https://github.com/Numbertext/libnumbertext/pull/65