STR$
PURPOSE: Converts the argument (numeric value or numeric expression value) to a
string.
FORMAT:
EXAMPLE: STR$ (123), STR$ (255+3)
PARAMETERS: Argument: numeric expression
EXPLANATION:
1. Converts decimal values specified in the argument to strings.
2. Converted positive values include a leading space and converted negative
values are preceded by a minus sign
SEE: VAL
VAL
PURPOSE: Converts a numeric character string to a numeric value.
FORMAT:
EXAMPLE: A=VAL (“345”)
PARAMETERS: string : string expression
EXPLANATION:
1. Converts a numeric character string to a numeric value.
2. Numeric characters are converted up to the point in the string that a non-
numeric character is encountered. All subsequent characters are disregarded
from the non-numeric character onwards. (i.e. VAL(“123A456”) = 123).
3. The value of this function becomes 0 when the length of the string is 0 or
when the leading character is non-numeric.
SEE: STR$, VALF
VALF
PURPOSE: Performs calculation of numeric expression expressed as string, and
returns the result.
FORMAT:
EXAMPLE: VALF (X$)
PARAMETERS: String : string expression
EXPLANATION:
1. Performs calculation of numeric expressions, which are expressed as strings,
and returns their results.
2. An error is generated when an intermediate of final result of calculation
exceeds 10
100
.
3. VALF cannot be used within a VALF argument.