Revert my bignum change.

master
Gabriel Weinberg 2013-12-25 10:14:14 -05:00
parent 028d4dc5d4
commit 597e3c0e39
1 changed files with 47 additions and 50 deletions

View File

@ -1,6 +1,7 @@
package DDG::Goodie::Calculator;
use DDG::Goodie;
use bignum;
zci is_cached => 1;
zci answer_type => "calc";
@ -92,9 +93,6 @@ handle query_nowhitespace => sub {
# 2011.11.09 fix for 21 + 15 x 0 + 5
$tmp_expr =~ s/(?<!\.)(?<![0-9])0([1-9])/$1/;
{
use bignum;
eval {
$tmp_result = eval($tmp_expr);
};
@ -147,7 +145,6 @@ handle query_nowhitespace => sub {
return $results_no_html . $tmp_result, html => $results_html, heading => "Calculator";
}
}
}
return;
};