# REXX Data Conversion Functions

*ABS(number) --*
- returns the absolute value of "number" as an unsigned value in the format specified by the NUMERIC keyword

*B2X(binary_string) --*
- returns the hexadecimal value of "binary_string"
- "binary_string" must contain only "0"'s and "1"'s

*C2X(string) --*
- returns the hexadecimal value of "string"

*FORMAT(number[, [before][, [after][, expp][, expt]]]]) --*
- returns "number" rounded and formatted
- the integer is "before" and the fraction "after" characters in length
- "expp" defines the number of places in the exponent and "expt" when an exponent is triggered

*TRUNC(number[, n}) --*
- returns the integer part of "number" and "n" decimal places
- "n" defaults to "0" and returns a value with no decimal places
- "number" is rounded, as needed
**before** truncation occurs

*Next*