p4raw-id: //depot/cfgperl@5729
$test++;
push @script, <<EOS;
print "# j = \$j\n";
- print "not " unless "\$j" eq "-0.5+0.866025403784439i";
+ print "not " unless "\$j" =~ /^\Q-0.5+0.86602540\E\d+i$/;
print "ok $test\n";
\$j->display_format('style' => 'polar', 'polar_pretty_print' => 0);
$test++;
push @script, <<EOS;
print "# j = \$j\n";
- print "not " unless "\$j" eq "[1,2.0943951023932]";
+ print "not " unless "\$j" =~ /^\Q[1,2.09439510\E\d+]$/;
print "ok $test\n";
\$j->display_format('style' => 'cartesian', 'format' => '(%.5g)');