Skip to main content
Version: v4.24

is_numeric

Checks if a string contains only numeric characters.

is_numeric(x:string) -> bool

Description

The is_numeric function returns true if x contains only numeric characters and false otherwise.

Examples

Check if a string is numeric

from {x: "1234".is_numeric()}
{x: true}

See Also

is_alpha, is_alnum