isNumeric

Determines whether T is a numeric (floating point, integral or complex) type. *

enum bool isNumeric(T);

Return Value

$(D_KEYWORD true) if T is a numeric type, $(D_KEYWORD false) otherwise.

Examples

alias F = float;
static assert(isNumeric!F);
static assert(!isNumeric!bool);
static assert(!isNumeric!char);
static assert(!isNumeric!wchar);

See Also

$(D_PSYMBOL isIntegral!T), $(D_PSYMBOL isFloatingPoint), $(D_PSYMBOL isComplex).

Meta