Whether the given type is one of the built-in floating-point types, ignoring
all qualifiers.
Floating-Point Types
float
double
real
Note that this does not include implicit conversions or enum types. The
type itself must be one of the built-in floating-point types.
This trait does have some similarities with __traits(isFloating, T),
but isFloating accepts more types than isFloatingPoint does.
isFloatingPoint is specifically for testing for the built-in floating-point
types, whereas isFloating tests for a whole set of types that are
vaguely float-like (including enums with a base type which is a
floating-point type and some of the vector types from core.simd). So, for
most code, isFloatingPoint is going to be more appropriate, but obviously,
it depends on what the code is trying to do.
Whether the given type is one of the built-in floating-point types, ignoring all qualifiers.
Note that this does not include implicit conversions or enum types. The type itself must be one of the built-in floating-point types.
This trait does have some similarities with __traits(isFloating, T), but isFloating accepts more types than isFloatingPoint does. isFloatingPoint is specifically for testing for the built-in floating-point types, whereas isFloating tests for a whole set of types that are vaguely float-like (including enums with a base type which is a floating-point type and some of the vector types from core.simd). So, for most code, isFloatingPoint is going to be more appropriate, but obviously, it depends on what the code is trying to do.
See also: __traits(isFloating, T) isInteger isSignedInteger isNumeric isUnsignedInteger