Subject: | N::B::H 0.09 handles fractional units incorrectly. |
Date: | Thu, 17 Jul 2014 23:13:56 +0100 |
To: | bug-Number-Bytes-Human [...] rt.cpan.org |
From: | "Martin A. Brooks" <martin [...] hinterlands.org> |
Hello
With N::B::H 0.09 as installed from Ubuntu's package repo:
$ perl -e 'use Number::Bytes::Human qw(parse_bytes); print parse_bytes("5
TB")."\n";'
5000000000000
$ perl -e 'use Number::Bytes::Human qw(parse_bytes); print
parse_bytes("5.5 TB")."\n";'
5005000000000
$ perl -e 'use Number::Bytes::Human qw(parse_bytes); print
parse_bytes("5.500 TB")."\n";'
5500000000000
This is perl 5.18.2, Ubuntu stock.
Mart.