summaryrefslogtreecommitdiff
path: root/lib/bigrat.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/bigrat.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/bigrat.pl')
-rw-r--r--lib/bigrat.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bigrat.pl b/lib/bigrat.pl
index 3157cf8244..008befff20 100644
--- a/lib/bigrat.pl
+++ b/lib/bigrat.pl
@@ -75,7 +75,7 @@ sub main'rneg { #(rat_num) return rat_num
# absolute value
sub main'rabs { #(rat_num) return $rat_num
local($_) = &'rnorm($_[0]);
- substr($_,0,1) = '+';
+ substr($_,0,1) = '+' unless $_ eq 'NaN';
$_;
}