System.Math.TFPURoundingMode
Delphi
TFPURoundingMode = type TRoundingMode;
C++
typedef TRoundingMode TFPURoundingMode;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum typedef |
public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Enumerates the FPU's floating-point rounding modes.
On 32-bit platforms, the FPU (Floating Point Unit) handles floating-point calculations. GetFPURoundMode is used to read, and SetFPURoundMode is used to set the FPU's rounding mode.
TFPURoundingMode can be one of the following values defined by TRoundingMode.
Value | Meaning |
---|---|
|
Rounds to the closest integer value. |
|
Rounds toward negative infinity. |
|
Rounds toward positive infinity. |
|
Truncates the value, rounding positive numbers down and negative numbers up. |