Navigation:  thinBasic Modules > Core > String handling >

DIGIT$

Previous pageReturn to chapter overviewNext page

 

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