Skip Menu |

This queue is for tickets about the Lingua-JA-Numbers CPAN distribution.

Report information
The Basics
Id: 127162
Status: new
Priority: 0/
Queue: Lingua-JA-Numbers

People
Owner: Nobody in particular
Requestors: bkb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05
Fixed in: (no value)



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.