Sign in Join
FPDoc Onlineexperiment

SetRoundMode function

In unit Math

Set the Floating Point Unit rounding mode.

Declaration

pascal
function SetRoundMode(const RoundMode: TFPURoundingMode)
: TFPURoundingMode

Description

SetRoundMode sets the floating point unit rounding mode. It also returns the previous rounding mode.

rmNearest

Round to nearest integer.

rmDown

Round to biggest integer smaller than value.

rmUp

Round to smallest integer larger than value.

rmTruncate

Cut off fractional part.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.