Yet-Zio / yetCalc

Yet another calculator designed and developed for Android
BSD 3-Clause "New" or "Revised" License
221 stars 17 forks source link

mass unit conversion error #54

Open neco154 opened 1 year ago

neco154 commented 1 year ago

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 commented 1 year ago

@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 :)