microsoft / calculator

Windows Calculator: A simple yet powerful calculator that ships with Windows
MIT License
29.48k stars 5.34k forks source link

science mode should support an easy button to change result format from decimal mode to fractional mode #204

Open whutddk opened 5 years ago

whutddk commented 5 years ago

Problem Statement

science mode should support an easy button to change result format from decimal mode to fractional mode.

Evidence or User Insights

In most of scientific calculator, a single button is added to support this funciton to satify different requirement. Can you add this in it?

Proposal

An easy button to switch mode

Goals

when I calculate 3 divide 9, the result 0.333333333... will be given out. But sometimes I need a more accurate result TIM截图20190309144526 in fractional format. Because my works need my result to show in fractional. May be a little button is needed to switch result.

Non-Goals

Low-Fidelity Concept

MicrosoftIssueBot commented 5 years ago

This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.

grochocki commented 5 years ago

Thanks for the feature suggestion! I think this is a great start, but it seems like there are some missing details. Can you add more information to your pitch? Check out our New Feedback Process for more info.

This feels pretty similar to #170? Would you agree? If so, perhaps it would be better to join the discussion there.

whutddk commented 5 years ago

No, I think it's different from #170. But maybe the feature #170 mentions should support first. In short, two kinds of result format can be given out with the help of this button:

I think most of CASIO calculators support this function, maybe you can find one and try.

whutddk commented 5 years ago

can you understand what I say? @grochocki

Luuk34 commented 5 years ago

What if the output is: 10,00048602673147023086269744836 Should this button really change it to: 123456/12345 ?

whutddk commented 5 years ago

@Luuk34 Hi, the feature I metion depend on CASIO fx-82ES calculator. Then I try it in real calculator, it cannot! But I think it should,because 10,00048602673147023086269744836 = 1000048602673147023086269744836 / 10000000000000000000000000000000 ,then it can be simplified. This function mainly use for the result like 1/3, 1/7,1/11,that can only show accurate result in fractional format.

grochocki commented 5 years ago

Thanks for the clarification @whutddk. It seems this #170 is focused on making fractions/exponents visually distinct, while your idea covers covnersion between fractions and decimals. Let's keep this idea open for discussion so the community has the chance to provide feedback.

As @Luuk34 points out, most decimals do not work out to a nice conversion. While technically correct, I am not sure displaying this is the best user expereince:

1000048602673147023086269744836 / 10000000000000000000000000000000

lzl1918 commented 5 years ago

so, it is a good idea to add similar accuracy improvements to root numbers?

Sqrt (2)=(visualized sqrt)(2) sqrt (2.5) = sqrt (10/4) = (visualized sqrt)(10)/2 sqrt (3)/sqrt (2) = (visualized sqrt)(6)/2

grochocki commented 5 years ago

so, it is a good idea to add similar accuracy improvements to root numbers?

Sqrt (2)=(visualized sqrt)(2) sqrt (2.5) = sqrt (10/4) = (visualized sqrt)(10)/2 sqrt (3)/sqrt (2) = (visualized sqrt)(6)/2

@lzl1918 I think this would be good to include in the discussion for #170

ghost commented 5 years ago

We reviewed the pitch and would love to explore this idea further! The pitch is a great start, but there are still some open questions. I am moving this issue into planning to iron out some of those details and I created calculator-specs/decimalToFraction to track progress. A human will follow up with some feedback on your pitch shortly. Keep in mind that not all ideas that make it into the planning phase are guaranteed to make it to release. For more information on next steps, check out our spec workflow.

grochocki commented 5 years ago

We believe this is dependent on #170, which in turn, is likely dependent on the ability to display rich math symbols and expressions in the output. We can move forward thinking through the UX and behavior assuming those issues are resolved. A couple additional pieces of feedback:

SaprativRay commented 4 years ago

Thanks for the clarification @whutddk. It seems this #170 is focused on making fractions/exponents visually distinct, while your idea covers covnersion between fractions and decimals. Let's keep this idea open for discussion so the community has the chance to provide feedback.

As @Luuk34 points out, most decimals do not work out to a nice conversion. While technically correct, I am not sure displaying this is the best user expereince:

1000048602673147023086269744836 / 10000000000000000000000000000000

While this is true, most CASIO calculators simply don't convert the decimals which do not have accurate and "aesthetic" representation in fractions. On pressing the button to convert, it doesn't do anything. While that might not be the best user experience, and I know this would be a lot of work for a minor feature, it makes sense to not convert but simply add a small lightbulb icon beside the same decimal value in the answer box which explains why the conversion was not performed.

ghost commented 4 years ago

Here is an example from the Google Calculator for Android:

Screenshot_2020-08-14-15-40-56-700_com.google.android.calculator.jpg

Note that there is no button for switching decimal/fractional modes. It shows both forms by default.

Chips1234 commented 3 years ago

I'm thinking something where the default is in decimal form, but there's a little button (perhaps with the symbol a and b over c, see image below of my Sharp Calculator's button) and when that's pressed, the decimal will turn into a fraction. Perhaps the default behaviour for the button is a mixed fraction, but when the [2nd] button is clicked, the button will turn mixed into improper fractions? image