Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleAvailability

This routine is available since starting with katl-commons 3.0.5 .

Syntax

...

isDigit(str)

Description

...

Excerpt

Returns true if the provided argument str is a string containing only digits.

Parameters

...

Parameter name

Type

Required

Description

str

string

Yes

Specifies a character expression.

Return type

...

boolean (true/false)

Example

...

Example 1

...

Code Block
wret = isDigit("2345");
print(wret);

Print true

Example 2

...

Code Block
wret = isDigit("aaa2345f.ff");
print(wret);

Print false

Example 3

...

Code Block
wret = isDigit("2.34");
print(wret);

Print false

See also

...

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "string_routines"
labelsstring_routines