Subtracts one expression from another. This is the functional equivalent of the - operator.
sub( expression, expression2 ) integer, measure, currency value
expression1, expression2
Integer, measure or currency values. Both expressions must be the same type. The returned value is set according to the type of the parameters.
Example 1 and Example 2 illustrates both ways of subtracting numbers.
show(inttostr(2-2))
show(floattostr(sub(4.7,2.1)))