Str[$] Function

Language Items List

Definition:

Return a string that represents the value of a simple numeric expression.

Syntax:

Str[$](number)


Syntax Description


number Any valid numeric expression.

Details:

Str[$] returns a String.

Str[$] essentially converts simple numeric values to strings.

The Val function is the opposite of Str[$] and returns the numeric value of a string.

See Also:

Val Function

Example:

The following two expressions are equivalent since numbers are automatically converted to strings when they are used with the string concatenation operator:

Print Str(10.23) & is a number

Print 10.23 &
is a number