Yip,
here my first and really simple MsgPlus calculator plugin...
commands:
/xcalc algebric_expression
/xprecis floatting_point_precision (by default precision = 2)
example:
/xcalc ((2+1)*(2+1))*(2+1)
=27
/xcalc (((2+1)*2+1)*2+1)
=15
/xcalc (666/77)*8+(2*3.5)-(2.78*8.7)
=52.01
/xprecis 16
/xcalc (666/77)*8+(2*3.5)-(2.78*8.7)
52.0088051948052050
CAUTION!
you must use () when some * or /
/xcalc 666/77*8
=1.08 ==> FALSE !!!
/xcalc (666/77)*8 ==> TRUE !!!
=69.20
I'll correct that in futur releases and I'll implement all basic algebric function like abs(), mod(), pow(), sqrt(), ...
Futur versions will be multiple precision arithmetic (no bytes limitations
)
Report all bugs here please.