3 ###############################################################################
4 # test for bug #18025: bignum/bigrat can lead to a number that is both 1 and 0
13 unshift @INC, '../lib';
19 my $lnev = -7 / (10**17);
22 is( sprintf('%0.5f',$ev) , '1.00000', '($ev) is approx. 1' );
23 is( sprintf('%0.5f',1-$ev) , '0.00000', '(1-$ev) is approx. 0' );
24 is( sprintf('%0.5f',1-"$ev") , '0.00000', '(1-"$ev") is approx. 0' );
26 cmp_ok( $ev, '!=', 0, '$ev should not equal 0');