MathStudio  Blog  Share  Manual  Forums  Support 
How to force numerical answers not exact symbolic fractions?
  • Is there a way to suppress the answer conversion to exact symbolic fractions?
    I do numerical calculations and prefer to see 1.5 instead of 3/2 as an answer.
    I know I can click on the cell and re-evaluate it to get 1.5 but is there a way to force that behavior by default, like in Matlab?
    Number(3/2) still returns 3/2.

    Mathematica resolves such an issue by using the decimal point to indicate an imput is numeric not exact symbolic. For example 3/2. evaluates to 1.5 in Mathematica.
  • DesaDesa
    Accepted Answer
    Change the number mode to "Decimals" and uncheck "Smart Solve" in the options tab.
  • Choosing "Decimals" number mode worked, thanks! I will keep "Smart Solve" checked for now, otherwise I get unevaluated answers in some situations.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion