This summary list of intrinsic functions is useful as a quick reference. The function syntax specification has formal syntactic definitions for intrinsic functions.
abs(numeric) Absolute value ln(numeric) Natural log log(numeric) Log base 10 log2(numeric) Log base 2 max(numeric, numeric) Maximum value of two signed arguments min(numeric, numeric) Minimum value of two signed arguments mod(numeric, numeric) Modulus of two signed arguments remainder(numeric, numeric) Division remainder two signed arguments root(numeric) Square root; integers are unsigned; reals are signed
[a]cos[h](real) Cosign functions [a]sin[h](real) Sine functions [a]tan[h](real) Tangent functions atan(realA, realB) Inverse tangent of realA / realB exp(real) Raise e to the power of the argument ceiling(real) Round to the next higher integer floor(real) Round to the next lower integer integer(real) Truncated integer part round(real) Round to the nearest integer
borrow(integer, integer) 1 if a borrow from the arguments carry(integer, integer) 1 if sum of arguments carry positive(integer) zero extend the argument
chop(String [, Word]) Erase from the front of a String left(String [, Word]) Substring from the front of a String length(String) Length of a String lower(String [, Word]) Lower case a String or character right(String [, Word]) Substring from the end of a String string(String [, Word]) Cast integer or extract character string(String, Word, Word) Substring of a String trim(String [, Word]) Erase from the end of a String upper(String [, Word]) Upper case a String or character
@parcel(Integer) Used to set a pointer to a Parcel expression @cast(Pointer) Cast a pointer to the outer type alignment(Type) Type alignment in bytes alignment(@) Alignment of a pointer span(Type) Width in bytes of a type span(@) Width of a pointer context(Variable) State of a context variable signal(Variable) ??? Enumeration(*) Maximum position in an enumerated type. Enumeration(.Name) Position of the, .Name, item. Enumeration(Integer) Position given as an integer constant. Enumeration(Expression) Position given as a Word expression. byte(Expression) Cast to a Byte parcel(Expression) Cast to a Parcel parcel(@Pointer) Value if the pointer is a parcel word(Expression) Cast to a Word cell(Expression) Cast to a Cell single(Expression) Cast to a Single double(Expression) Cast to a Double string(Expression) Cast to a String
form( String, String_Format ) form( Integer, Integer_Format ) form( Real, Real_Format ) form( Enumeration, Enumeration_Format ) form( Structure, Structure_Format )