Skip to content
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

fromFloat 1/3 #32

Open
OPVL opened this issue Mar 1, 2022 · 0 comments
Open

fromFloat 1/3 #32

OPVL opened this issue Mar 1, 2022 · 0 comments

Comments

@OPVL
Copy link

OPVL commented Mar 1, 2022

Hi,

just started using your package to display values less than 1 as fractions in my application. Come across a slight issue with trying to display 1/3 from a float value of 0.33333333333.

expected: '1/3 teaspoon of paprika'
actual: '33333333/100000000 teaspoon of paprika'

obviously don't want to unnecessarily lose precision but in this case I think it would be logical to conflate 0.33333333333 >> 1/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant