-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[new-unit] Fractions to Decimal Representation #201
Comments
If issue #148 will be fixed, this unit is redundant, isn't it? |
I would like an option that converts decimal to fraction and vice versa on its own. For one, most converted units would be displayed as mixed fractions - like But, for two, this makes the converter more versatile for a variety of situations. Various sciences use fractions due to the difficulties of rational numbers that can only be represented with reptends (infinitely repeating decimals). I can find some examples of how they're used in chemistry, if needs be, but to choose a simpler example, they can also represent ratios. Aspect Ratio
A screen is 720x1280. To find the aspect ratio of this screen:
Then convert decimals to fractions:
So the aspect ratio is 16:9. You can see an example of a Decimal to Fraction converter here: The creator chose to leave an option for users to specify the number of repeating digits: 0.8333... repeating
0.333... repeating
However, there are a thousand ways to implement this sort of function, with more or less complexity. The average scientific calculator doesn't allow the user to specify the repeating digits and still does the job. It depends on how you would want to implement it. Apologies for the multiple edits - I'm on a device that doesn't support Github's maths formatting, so I'm doing it all by hand. |
I would like to have this feature implemented too. Sometimes it just makes more sense to enter a fraction, and readability is much improved also. |
Description
Fractions to decimals and decimals to fractions is useful in many circumstances - Arithmetic, circle geometry and converting non-decimal measurement systems to metric (i.e. issue #148), etc. It is a standard on scientific calculators for this reason.
Units to be added
The text was updated successfully, but these errors were encountered: