Subject: | Leading zeros cause stray numbers to appear |
This script demonstrates the problem:
use lib 'Lingua-JA-Numbers-0.05/lib';
use Lingua::JA::Numbers 'num2ja';
binmode STDOUT, ":utf8";
print num2ja ('005094'), "\n";
print num2ja ('00353871328114'), "\n";
print num2ja ('0000000001'), "\n";
print num2ja ('000000000001'), "\n";
The output looks like this:
万五千九十四
兆三千五百三十八億七千百三十二万八千百十四
億一
一
The leading zeros cause stray 万 or 兆 to appear, similarly with other numbers, but sometimes it works correctly as seen on the bottom line.