The language is Java and the machine is a normal PC with an Intel processor. The type is double.
Floating point numbers can't represent exactly every fractional number, the result of the operations like division or subtraction are somehow rounded to some near floating point representation.
I am asking whether the used rounding strategy is:
- rounding away from zero
- rounding towards zero
- rounding towards negative infinity
- rounding towards positive infinity
- rounding to nearest (half up)
- rounding to nearest (half down)
- rounding to nearest (half even)