Str$

combit List & Label Designer

combit List & Label

Str$

Purpose:

Converts a number into a string. The number will be formatted with 6 decimal places that may be rounded. The length is variable.

Parameter:

Number

Number         (optional) Defines the length of the string (default:6). If the number is too large for this format, the resulting string may then be longer than desired. If the number is too small, spaces will be attached dependent upon the prefix, right (negative) or left (positive).

Number         (optional) Defines the precision (number of decimal places). If the number is positive, the number will be displayed as a floating-point number, if negative in scientific format.

Return value:

String

Example:

Str$(Pi)                             Result: "3.141593"

Str$(Pi,3)                           Result: " 3"

Str$(Pi,3,0)                        Result: " 3"

Str$(-Pi,12,-3)                   Result: "-3.141e+00"

Str$(Page())                      Result: "5.000000"

Str$(Page(),10)                  Result: "     5"

Str$(Page(),-10)                 Result: "5     "