• should it calculate in 'python' ...

Question related to mission _R Calculator

 

should it calculate in 'python' way:

1 / 2 = 0; -4 / 8 = -1;

or in regular 'math' way:

1 / 2 = 0.5 -4 / 8 = -0.5 ?

My script parses expressions like

(((-(-(-4/2)))/+++2+(-+-+8*(4/4/4+3))))/-(--24)

in python way - equals (-1), but still fails with error 'ex'.

6
jey