ABS(Value : Double)
Demo
VAR Result: String;
VAR absVal: Double;
//---Absolute Value
absVal := -7;
absVal := ABS(absVal);
Result := FloatToStr(absVal);
Exit;
It will returns the absolute value of -7 that is 7
Ceil(Value : Double)
Demo
VAR Result: String;
VAR absVal: Double;
//---Absolute Value
absVal := 7.23;
absVal := Ceil(absVal);
Result := FloatToStr(absVal);
Exit;
returns 8
Pred(Value : Integer)
Demo
VAR Result : Integer;
VAR i : Integer;
i := PRED(20);
ShowMessage(IntToStr(i));
//expected val = 19
Exit;
Random(ARange : Integer)
Demo
VAR Result : String;
VAR i : Integer;
//---expected val is between 0 and 100
i := Random(100);
ShowMessage(IntToStr(i));
Exit;
ROUND(AValue : Double)
Demo
VAR Result : String;
VAR i : Integer;
//---expected value = 4
i := ROUND(4.5);
ShowMessage(IntToStr(i));
Exit;
StrToFloat(AString : String);
Demo
VAR Result : String;
VAR i : Double;
//---expected value = 4
i := StrToFloat('4.5');
Exit;
StrToInt(AString : String);
Demo
VAR Result : String;
VAR i : Integer;
//---expected value = 4
i := strToInt('12');
i := i * 3 ;
ShowMessage(IntToStr(i));
Exit;