SETPRECISION

Top  Previous  Next

Syntax

SETPRECISION (places as INT)

Description

Sets the output display precision for the PRINT and STR$ commands

Parameters

places - Number of decimal places to display or include in conversion.

Return value

None

Remarks

By default the PRINT statement is set to display 2 decimal places of FLOAT and DOUBLE types. The SETPRECISION command only effects the display or conversion to a string of floating point numbers and not the internal storage of the number. PRINT and STR$ support a maximum of 40 digits after the decimal point.

See Also: PRINT, STR$

Example usage

SETPRECISION 10
PRINT 1.2234334556