isDecimal

Determines if a string is a decimal value

pure @safe
bool
isDecimal
(
const string value
)

Parameters

value string

string to use.

Return Value

Type: bool

true if the value is a decimal false otherwise.

Examples

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

Meta