isFloatingPoint

Determines whether T is a floating point type.

Floating point types are:

  • float
  • double
  • real
enum bool isFloatingPoint(T);

Return Value

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

Examples

static assert(isFloatingPoint!float);
static assert(isFloatingPoint!double);
static assert(isFloatingPoint!real);
static assert(isFloatingPoint!(const float));
static assert(isFloatingPoint!(shared float));
static assert(isFloatingPoint!(shared const float));
static assert(!isFloatingPoint!int);

Meta