max
max(real: Real): Real;
The max method of the Real primitive type returns the larger value of the receiver and the real parameter.
If the value of the receiver is greater than the value of the real parameter, the value of the receiver is returned. If the value of the receiver is less than or equal to the value of the real parameter, the value of real is returned.
The following example shows the use of the max method.
testReal(); vars realValue : Real; begin realValue := 34.5; // Defines the variable value write realValue.max(40.6); // Outputs 40.6 end;