[fpc-pascal] math round vs banker's round

Ludo Brands ludo.brands at free.fr
Wed Aug 14 09:04:31 CEST 2013

On 08/14/2013 08:47 AM, David Emerson wrote:

> I don't see this TfpuRoundingMode mentioned anywhere in the
> documentation, other than the "get" and "set" functions for the same.
> What does it effect?
It sets the 8087 registers and or SSE registers in x86 and x64 systems.
The problem is that the bankers mode rounding is the default IEEE 754
rounding and that is what the 8087 and SSE FPU's implements.

For SSE see http://www.rz.uni-karlsruhe.de/rz/docs/VTune/reference/vc148.htm
For 8087 see


More information about the fpc-pascal mailing list