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

mass unit conversion error #54

Open
neco154 opened this issue Apr 19, 2023 · 1 comment
Open

mass unit conversion error #54

neco154 opened this issue Apr 19, 2023 · 1 comment
Assignees
Labels
code-issue A result, feature or property in the app that does not yield the correct result due to known changes converter Issues, pull requests or discussions concerning the converter mode.

Comments

@neco154
Copy link

neco154 commented Apr 19, 2023

I tried convert from miligrams to grams (mg -> g) and saw that there is a small deviation. See 3 on last digit.

Screenshot_20230418-132714_yetCalc

@Yet-Zio
Copy link
Owner

Yet-Zio commented Apr 20, 2023

@neco154 Thanks for the report. Just checked the source for the conversation rates but this appears to be a scaling issue, an internal problem with the double type. Some other units might have this problem as well. Like you said there is a 3 appearing as well at the end. Reducing the scaling might fix this. I will probably release an update concerned to this :)

@Yet-Zio Yet-Zio self-assigned this Apr 20, 2023
@Yet-Zio Yet-Zio added code-issue A result, feature or property in the app that does not yield the correct result due to known changes converter Issues, pull requests or discussions concerning the converter mode. labels Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-issue A result, feature or property in the app that does not yield the correct result due to known changes converter Issues, pull requests or discussions concerning the converter mode.
Projects
None yet
Development

No branches or pull requests

2 participants