MathParser.org-mXparser icon indicating copy to clipboard operation
MathParser.org-mXparser copied to clipboard

Add integer division operator

Open gx56q opened this issue 3 years ago • 1 comments

  • We all need integer division operator

gx56q avatar Nov 25 '22 15:11 gx56q

Ok, this will be easy :-) I will do that soon.

As of now you can do it like that:

Expression e = new Expression("floor(13/7)");
mXparser.consolePrintln(e.calculate());

Result: [mXparser-v.5.1.1] 1.0

mariuszgromada avatar Nov 25 '22 16:11 mariuszgromada

Done, example "\" backslash as integer division operator "7\3" = 2

mariuszgromada avatar May 18 '24 21:05 mariuszgromada