<<

Contents

Search

>>

 

STR0$

 

 

Function

 

 

Syntax:

STR0$(<Value>,<Length>)

 

<Value>

= <NUM-EXPRESSION>

<Length

= <NUM-EXPRESSION>

 

Meaning:

Returns the <Value> as a string.

 

If the length of the result string is less than <Length> the string is filled with leading characters "0".

 

If <Value >=0, the 1st character of the String is the minus sign.

 

Parameter:

Value

Numeric expression

Length

Length of result string

 

Sample:

H$ = STR0$(123.67,4)  /* H$ contains "123.67"

H$ = STR0$(123.67,8)  /* H$ contains "00123.67"

H$ = STR0$(-123.67,8) /* H$ contains "-0123.67"

H$ = STR0$(0,5)       /* H$ contains "00000"

 

See also:

STR$

STRN$

STRFORMAT$

STRNUM$

VAL

HEX$

OCT$