Sign in Join
FPDoc Onlineexperiment

TFPURoundingMode enumeration

In unit System

How to round floating point values.

Declaration

pascal
TFPURoundingMode = (rmNearest,rmDown,rmUp,rmTruncate)

Description

TFPURoundingMode enumerates the possible values for software floating point math rounding. It has been moved here from the math unit.

See also

Values

rmNearestRound to nearest integer.
rmDownRound to biggest integer smaller than value.
rmUpRound to smallest integer larger than value.
rmTruncateCut off fractional part.

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