# infobot copyright (C) kevin lenzo 1997-98
#
-if (&IsParam("useStrict")) { use strict; }
+use strict;
+
+use vars qw($message);
my %digits = (
"first", "1",
}
for ($locMsg) {
- s/\bpi\b/3.1415/g;
+ s/\bpi\b/3.14159265/g;
s/ to the / ** /g;
s/\btimes\b/\*/g;
s/\bdiv(ided by)? /\/ /g;
&& ($locMsg !~ /^\s*[( )]+\s*$/)
&& ($locMsg =~ /\d+/)
) {
+ $locMsg =~ s/([0-9]+\.[0-9]+(\.[0-9]+)+)/"$1"/g;
$locMsg = eval($locMsg);
if (defined $locMsg and $locMsg =~ /^[-+\de\.]+$/) {
}
} else {
if (defined $locMsg) {
- &DEBUG("math: locMsg => '$locMsg'... FIXME");
+ &FIXME("math: locMsg => '$locMsg'...");
} else {
&status("math: could not really compute.");
$locMsg = "";