OverloadedFunctionList contains a series of TFunctionClasses that define overloaded functions.
The following functions are included by default.
Abs(Value) returns the absolute value of Value. Value can be either an integer or a real number. The value returned by Abs will have the same type as Value.
Case(Index, Result1, Result2, ...). Case uses Index to determine which of the Result1, Result2, ... arguments will be returned as a result. If Index equals 1, Result1 is returned; if Index equals 2, Result2 is returned; if Index equals 3, Result3 is returned; and so forth. Only "Index", constant expressions and the result that is returned will be evaluated. The types of Result1, Result2, ... must all be the same but they can be of any type. The type that is returned will be the same as the type of Result1, Result2, ...
If(Boolean_Value, If_True_Result, If_False_Result). If uses Boolean_Value to determine whether If_True_Result or If_False_Result is returned as a result. If Boolean_Value is true, If_True_Result is returned; if Boolean_Value is false, If_False_Result is returned. Only "Boolean_Value", constant expressions and the result that is returned will be evaluated. The types of If_True_Result and If_False_Result must be the same but they can be of any type. The type that is returned will be the same as the type of If_True_Result and If_False_Result.
Max(Value1, Value2, ...) returns whichever of its arguments is the largest. Its arguments must be either integers or real numbers. The result will be a real number if any of the arguments is a real number. If all the arguments are integers, the result will be an integer.
Min(Value1, Value2, ...) returns whichever of its arguments is the smallest. Its arguments must be either integers or real numbers. The result will be a real number if any of the arguments is a real number. If all the arguments are integers, the result will be an integer.
MultiInterpolate(Position, Value1, Distance1, [Value2, Distance2,] ...). If Position is less than or equal to Distance1, MultiInterpolate returns Value1. If Position is greater than or equal to DistanceN, MultiInterpolate returns ValueN. If Position is between any two adjacent distances, linear interpolation between the associated values will be used to determine the value that will be returned. See also Interpolate.
Sqr(Value) returns Value Squared. Value can be either an integer or a real number. The result of Sqr will be an integer if Value is an integer. Otherwise it will be a real number.
|