Skip Menu |

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

Report information
The Basics
Id: 127177
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: 26億985万0274 turns into 2609850188
This script shows the problem: use lib 'Lingua-JA-Numbers-0.05/lib'; use Lingua::JA::Numbers 'ja2num'; binmode STDOUT, ":utf8"; print ja2num ('26億985万0274'), "\n"; Output: $ perl test5.pl 2609850188 Although a leading zero might convert to octal, in this case the leading zero is embedded within the number so this is quite unexpected behaviour. Similar problems occur with these numbers: 2億0645万 -> LJN: '204210000' 3億0053万 -> LJN: '300430000' 1兆0044億 -> LJN: '1003600000000' 1兆0200億 -> LJN: '1012800000000' 1兆0756億 -> LJN: '1049400000000'