Navigation:  thinBasic Modules > Core > String handling >

TSTR$

Previous pageReturn to chapter overviewNext page

 

Description

 

Return the string representation of a number in printable form.

Returned string is trimmed (spaces are removed)

 

Syntax

 

s = TSTR$(NumericExpression [, Digits])

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

NumericExpression

Numeric

No

Any numeric expression to be transformed to string

Digits

Numeric

Yes

Specifies the maximum number of significant digits (1 to 18) desired in the result.

 

Remarks

 

This function works exactly like STR$ but will return a trimmed string without any leading space

 

Restrictions

 

See also

 

STR$,

 

Examples