isInteger

Determines if a string is an integer value.

pure @safe
bool
isInteger
(
const string value
)

Parameters

value string

string to use.

Return Value

Type: bool

true if the value is a integer false otherwise.

Examples

assert("13".isInteger == true);
assert("13.333333".isInteger == false);
assert("zzzz".isInteger == false);

Meta