Let:
ExactNumberQ[1]
(*True*)
Then give exact answer (by symbol and precision) :
Integrate[2 Sqrt[1 - x^2], {x, -1, 1}]
(*PI*)
If:
ExactNumberQ[1.0]
(*False*)
Integrate[2 Sqrt[1 - x^2], {x, -1, 1.0}]
(*-3.14159*)
Gives no-exact solution an approximation.
numbers = {1, 1., Pi, N[Pi, 7]};
TableForm[
Table[{x, ExactNumberQ[x], InexactNumberQ[x], Precision[x],
Head[x]}, {x, numbers}],
TableHeadings -> {{}, {"x", "exact", "approximate", "Precision",
"Head"}}]
![enter image description here](https://community.wolfram.com//c/portal/getImageAttachment?filename=1324Bez%C2%A0tytu%C5%82u.png&userId=476423)
A minus sign in a numerical calculation suggests an incorrect result.Looks like is a bug.
Regards M.I.