truncatedTo
truncatedTo(decimalPlaces: Integer): Real;
The truncatedTo method of the Real primitive type returns the receiver truncated to the number of decimal places specified in the decimalPlaces parameter. The following example shows the use of the truncatedTo method.
vars realValue : Real; begin realValue := 340.56789; // Defines the variable value write realValue.truncatedTo(3); // Outputs 340.567 end;