System.Math.TFPURoundingMode

From RAD Studio API Documentation
Jump to: navigation, search

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

rmNearest

Rounds to the closest integer value.

rmDown

Rounds toward negative infinity.

rmUp

Rounds toward positive infinity.

rmTruncate

Truncates the value, rounding positive numbers down and negative numbers up.

See Also