yetCalc icon indicating copy to clipboard operation
yetCalc copied to clipboard

4(5) yields NaN instead of 20

Open KeronCyst opened this issue 1 year ago • 1 comments

Multiplication is implicit when an open parenthesis symbol is surrounded by numbers.

KeronCyst avatar Feb 12 '25 06:02 KeronCyst

The calculator uses mXparser for evaluating expressions, which currently requires explicit multiplication 4*(5) instead of implicit multiplication 4(5). This behavior is due to how mXparser interprets expressions. A future update will add support for implicit multiplication, allowing 4(5) to work as expected. Thank you.

Also, newer versions of mXparser do support implicit multiplication, but they cannot be used because version 5.0 and above follow a dual-license model with terms that are incompatible with F-Droid and FOSS in general.

Yet-Zio avatar Feb 13 '25 06:02 Yet-Zio