NUMERIC() |
|
|
The NUMERIC() function converts a value to Numeric form.
Format
NUMERIC(expr)
where
The NUMERIC() function converts expr to numeric form, integer or floating point.
This function is rarely needed because all QMBasic operations requiring a numeric value perform the conversion automatically, however, if the value is used many times in a loop, there may be some performance advantage in converting it just once.
Traditionally multivalue Basic programs have performed this conversion by a statement of the form N = X + 0 where the addition operator will convert the value of X to numeric form. The NUMERIC() function provides a neater and marginally more efficient way to do this.
Example
N = NUMERIC(X)
This statement converts X to numeric form.
|