SetRoundMode function
Set the Floating Point Unit rounding mode.
Declaration
function SetRoundMode(const RoundMode: TFPURoundingMode)
: TFPURoundingModeDescription
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.
