StrP

result$ = StrP(x, precision%)

result$ = StrP$(x, precision%)

Returns a string representation of the value of x.

Precision% specifies the minimum number of digits to be converted.

If the value to be converted is shorter than this number, the result is padded with leading zeros.

Example:

a$ = StrP$(3.14159265359, 5)

Print a$

a$ = StrP$(3.14159265359, 15)

Print a$

Output:

3.14159

3.141592653590000