summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorPeter John Acklam <pjacklam@online.no>2010-11-05 11:52:14 +0100
committerFlorian Ragwitz <rafl@debian.org>2010-11-07 16:01:11 +0100
commit3d6017f56e6b8f8227e1fd4570d7e7a67b7fc28a (patch)
treed0cae9560e492942bc3596b9e8ee6fcf75858c91 /toke.c
parent4f039b22bd6382064369066e22a0750cdd4976b1 (diff)
downloadperl-3d6017f56e6b8f8227e1fd4570d7e7a67b7fc28a.tar.gz
RT ticket #62101: as_int() returns NaN for inf
Math::BigFloat -> binf() -> as_int() returns NaN, but should return inf. In other words, if $x is a Math::BigFloat, then $x -> as_int() shall return the same as Math::BigInt -> new($x). The bug appears both for +inf and -inf. -lib/Math/BigFloat.pm: Add two lines to catch the cases when the input is +/-inf and NaN, respectively. -t/bare_mbf.t: incremented test count by 3 -t/bigfltpm.inc: add 3 tests, for +inf, -inf, and NaN -t/bigfltpm.t: incremented test count by 3 -t/sub_mbf.t: incremented test count by 3 -t/with_sub.t: incremented test count by 3
Diffstat (limited to 'toke.c')
0 files changed, 0 insertions, 0 deletions