-
Notifications
You must be signed in to change notification settings - Fork 9
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
Input-dependant significant amount of digits. #23
Comments
I have some partially-functional code for this feature in a fork. I believe it works for almost all cases, however, I would like this to be tested. I've already uncovered the following issues/limitations during my debugging:
Cheers! |
I have created a pull request and I believe this fix causes the generator to give the correct number of significant figures for every input, however, third-party verification is always appreciated. If this is in fact true, I would like to request that it be merged. Thanks! |
Different input prompts may find different amount of significant digits relevant. A measurement of whole feet typically doesn't need up to three significant digits. While
3 feet
gets corrected to0.914 m
, perhaps0.9 m
or0.91 m
would suffice.Perhaps the significance of the input could be taken into account: prompt
3.00 feet
or12.54 stone
would result in more significant digits than3 feet
and12 stone
would.The text was updated successfully, but these errors were encountered: