The HAC language supports function calls in expressions. Supported argument types and return types include integer, boolean, real (float, double), and strings.
Stringify all args and concatenate into a single string (returned). This can be used to convert argument types to a string. Does not include terminating newline.
Conditional expression, for boolean, integer, real, and string rvalues, respectively. If z is true, return a, else return b. NOTE: both expressions a and b are evaluated unconditionally.
Returns the minimum or maximum of two values. zmin and zmax take and return integers. rmin and rmax take and return reals.
Convert string str to an integer, boolean, real, respectively. Throws run-time exception if conversion fails.
Convert/cast real-value into integer value. Recommend calling ceil or floor before passing to this function.
The following math functions are exported from the vendor's libm library, which includes most symbols from <math.h>. Arguments and return types are real-valued unless noted otherwise.