DBPro has given the correct answer, with no anomolies:
12-5*12/10-5
The order is Brackets, Orders, Divide, Multiply, Add, Subtract, so it can be written as:
12 - (5*(12/10)) - 5
so...
12 / 10 = 1 (Division of 2 integers = integer result)
therefore
12 - (5*1) - 5 = 2
---------------------------
To get the answer 1, you need to write:
12-5*12/10.0-5
which is the same as
12 - (5*(12/10.0)) - 5
Thus
12 / 10.0 = 1.2 (Division of at least one float = float result)
and therefore
12 - (5*1.2) - 5 = 1
The answer has nothing to do with how floats are stored and processed in DBPro. It's about how numbers are interpreted in the first place. It's very similar to the following in VB:
12 / 10.0 = 1.2
12 \ 10.0 = 1
The syntax determines the interpretation
Quidquid latine dictum sit, altum sonatur