Str

concerns

The Str function converts a number to a string.

 

Syntax

Str(Value)

Return value

Type

Description

String

The converted number

Parameter

Use

Name

Type

Passing

Description

Required

Value

Variant

ByVal

The number to be converted into a string.

When converting numbers to strings, a leading space is always reserved for the sign of Value. If Value is positive, the returned string contains a leading space. Unlike Str, the Format function does not insert a leading space for the sign of Value.