Specifications

Section 5. Program Declarations
5-4
' Create the variable array A with 8 elements
Dim A( 8)
The maximum number of array dimensions allowed in a Dim statement is 3. If
a program uses a subscript that is greater than the dimensioned value, a
subscript out of bounds error is recorded.
When variables are initialized, they are set to 0.
Tip Put Dim statements at the beginning of the program.
FormatFloat
Converts a floating point value into a string.
Syntax
String =FormatFloat ( Float, FormatString )
Remarks
The string conversion of the floating point value is formatted based on the
FormatString.
Part Description
Float The variable or constant that holds the floating point value to
be converted.
FormatString how the floating point value will be represented in the
converted string. Note that the format string must be enclosed
in quotes. The options are (m = mantissa; d = decimal; x =
exponent):
Code
Description
%f Decimal notation in the form of +mmm.dddddd; precision is
6 places to the right of the decimal
%e (or %E) Decimal notation in the form of +m.dddddd e+xx; precision
is 6 places to the right of the decimal
%g (or %G) Mantissa and decimal are variable; trailing 0s and decimals
are omitted
%Y.Zf Decimal notation in the form of +m.d; precision is defined
by Y places to the left of the decimal and Z places to the
right of the decimal
%Ye (or %YE) Decimal notation in the form of +m.d e+xx; precision is
defined by Y characters to the right of the decimal
%Yg (or %YG) Mantissa and decimal are variable; precision is defined by
Y.