Yet-Zio / yetCalc

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

Operations (+) and (-) in the natural set are not closed #10

Closed xfarrow closed 1 year ago

xfarrow commented 1 year ago

Operations (+) and (-) in the natural set give a result in the set of real numbers.

For example, 2+2=4, but the app gives 4.0 as result.

Yet-Zio commented 1 year ago

The reason you are seeing simple expressions return a real number is that the library mXparser returns a double due to its rounding settings to solve issues like these. Also a mistake from my side, thought I could adjust mXparser's Almost Int Rounding feature to solve the issue at the time of release.

However, I have already figured out a solution to this and the issue will be fixed in the next update ASAP. Sorry for any inconvenience.

xfarrow commented 1 year ago

@Yet-Zio it's okay, the app works fine and this is just a minor issue. Thank you for your work.

Yet-Zio commented 1 year ago

Issue fixed as of #12