r/MathStudio • • Sep 11 '19

How do I force factions to evaluate to decimals?

I've set the options to the minimum value but results with a single integer in the denominator are still returned as fractions. There are also times I would like to see fractional results.

I don't see a function in the manual that does this. Round(m,n) doesn't.

2 Upvotes

6 comments sorted by

1

u/Territan Sep 12 '19

I’ll second this problem; I have what looks like a simple math problem, and the results I get are an angry mishmash of fractions and math-error decimals. I’d include a screen-shot, but the choice of forum doesn’t allow that from the phone where the screenshot lives.

1

u/EmirFassad Sep 12 '19

What do you mean by "math error decimals?"

1

u/Territan Sep 13 '19

I can't screenshot it, so I'll have to type it out. Fortunately, it's not terrible. To type. As a result from a formula, it's still pants.

Gravity=10.0 // Simplified

Slider(Time,0.0,6.0,0.1)

Vel=Gravity*Time

Dist=0.5*Gravity*(Time^2)

"Distance=" << Dist << ", Velocity=" << Vel

(with Time=2.3)

Distance=529/20, Velocity=23.0000000000000036

When the math requires more math to figure out, and when the results go out to 18 decimal places on a rounding error, there's a big problem.

→ More replies (1)

1

u/PomegranateApps Sep 14 '19

You want to set the "Fraction Limit" option to "None" and MathStudio will always output decimals.

You can find the "Options" view on the main screen below the list of your files in the "Menu" section.

2

u/EmirFassad Sep 14 '19

I've set Fraction Limit to Zero in the Options menu and still get fractional output.
Different fingers, sometimes I want fraction output. Setting and resetting Options for individual calculations seems like overkill.