System.FSetRound

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function FSetRound(NewRound: UInt32): UInt32;

C++

extern DELPHI_PACKAGE unsigned __fastcall FSetRound(unsigned 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