diff options
-rw-r--r-- | lib/sbin/Runtest.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sbin/Runtest.pl b/lib/sbin/Runtest.pl index 56bbf3d6..aa8706ec 100644 --- a/lib/sbin/Runtest.pl +++ b/lib/sbin/Runtest.pl @@ -371,6 +371,10 @@ sub runtest { # This is the new comparison (subtract last two numbers) ($t1,$v1) = split(' ', $nline); ($t2,$v2) = split(' ', $oline); +# Make sure that floating point numbers have 'e' if exponential. + $v1 =~ s/[dD]/e/; + $v2 =~ s/[dD]/e/; + $vdiff = abs($v1 - $v2); if ($vdiff > 0) { |