summaryrefslogtreecommitdiff
path: root/lib/bigfloat.pl
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1991-03-21 00:00:00 +0000
committerLarry Wall <lwall@netlabs.com>1991-03-21 00:00:00 +0000
commitfe14fcc35f78a371a174a1d14256c2f35ae4262b (patch)
treed472cb1055c47b9701cb0840969aacdbdbc9354a /lib/bigfloat.pl
parent27e2fb84680b9cc1db17238d5bf10b97626f477f (diff)
downloadperl-fe14fcc35f78a371a174a1d14256c2f35ae4262b.tar.gz
perl 4.0.00: (no release announcement available)perl-4.0.00
So far, 4.0 is still a beta test version. For the last production version, look in pub/perl.3.0/kits@44.
Diffstat (limited to 'lib/bigfloat.pl')
-rw-r--r--lib/bigfloat.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bigfloat.pl b/lib/bigfloat.pl
index feaaa6e494..99a00794bb 100644
--- a/lib/bigfloat.pl
+++ b/lib/bigfloat.pl
@@ -73,7 +73,7 @@ sub main'fneg { #(fnum_str) return fnum_str
# absolute value
sub main'fabs { #(fnum_str) return fnum_str
local($_) = &'fnorm($_[0]);
- substr($_,0,1) = '+'; # mash sign
+ substr($_,0,1) = '+' unless $_ eq 'NaN'; # mash sign
$_;
}