I was creating a simple quiz. I noticed that wolframalpha converts 0.25 miles into 15800 inches while google converts it into 15840 inches. Is it a bug or did I make some miscalculation?
1 Answer
Using exact numbers or higher precision numbers gives the result that matches google's output:
WolframAlpha["convert 1/4 miles to inches", {{"Result", 1}, "ComputableData"}]
(* 15840 in *)
WolframAlpha["convert .250 miles to inches", {{"Result", 1}, "ComputableData"}]
(* 15840 in *)
Another example:
WolframAlpha["convert 1/5 miles to inches", {{"Result", 1}, "ComputableData"}]
(* 12672 in *)
WolframAlpha["convert " <> # <> "miles to inches", {{"Result", 1}, "ComputableData"}] & /@
{".2", ".20", ".200", ".2000"}
(* {12700 in, 12700 in, 12670 in, 12672 in} *)
1/4 miles
instead of.25 miles
you get ``15840` inches in WA. $\endgroup$.250 miles
also gives the correct result (WolframAlpha["convert .250 miles to inches", {{"Result", 1}, "ComputableData"}]
). $\endgroup$.250005
-> 15840` not15840.3
? $\endgroup$