System.FSetRound

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FSetRound(NewRound: UInt32): UInt32;

C++

extern DELPHI_PACKAGE UInt32 __fastcall FSetRound(UInt32 NewRound);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Sets the floating point rounding mode.

NewRound can take the following values:

Constant
ferTONEAREST
ferUPWARD
ferDOWNWARD
ferTOWARDZERO

FSetRound returns the previous value of the floating point unit's rounding mode.

Note: The NewRound parameter and the return value are different on each platform. In order to keep compatibility between different platforms, consider using SetRoundMode and TRoundingMode.

See Also