DIGIT$

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > String functions >

DIGIT$

 

Description

 

Extracts from a string expression only the chars representing a digit char.

 

Syntax

 

s = DIGIT$(string_expression)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

String_Expression

String

No

Any string expression

 

Remarks

 

Default digit chars are defined by the string "0123456789".

Default string can be changed at run-time using DIGIT_SetMask$ and DIGIT_GetMask$ functions.

 

Restrictions

 

See also

 

DIGIT_SetMask$, DIGIT_GetMask$

 

Examples