Subject: | Certain decimal range lookups fail |
The decimal range lookup below behaves unexpectedly.
#perl
#v5.6.1 MSWin32-x86-multi-thread on WinXP
use Tie::RangeHash; # version 0.70
# use numeric mode
tie %T, Tie::RangeHash, {Type => Tie::RangeHash::TYPE_NUMBER};
# assign two decimal ranges
$T{'0,.499'} = 'A';
$T{'0.500,1.9'} = 'B';
print $T{.6}; # prints 'A'; should print 'B'