isRealFloatingPointDataType
Test if an input value is a supported array real-valued floating-point data type.
Usage
var isRealFloatingPointDataType = require( '@stdlib/array/base/assert/is-real-floating-point-data-type' );
isRealFloatingPointDataType( value )
Tests if an input value
is a supported array real-valued floating-point data type.
var bool = isRealFloatingPointDataType( 'float32' );
// returns true
bool = isRealFloatingPointDataType( 'uint32' );
// returns false
Examples
var isRealFloatingPointDataType = require( '@stdlib/array/base/assert/is-real-floating-point-data-type' );
var bool = isRealFloatingPointDataType( 'float32' );
// returns true
bool = isRealFloatingPointDataType( 'float64' );
// returns true
bool = isRealFloatingPointDataType( 'generic' );
// returns false
bool = isRealFloatingPointDataType( 'int16' );
// returns false
bool = isRealFloatingPointDataType( 'int32' );
// returns false
bool = isRealFloatingPointDataType( 'int8' );
// returns false
bool = isRealFloatingPointDataType( 'uint16' );
// returns false
bool = isRealFloatingPointDataType( 'uint32' );
// returns false
bool = isRealFloatingPointDataType( 'uint8' );
// returns false
bool = isRealFloatingPointDataType( 'uint8c' );
// returns false
bool = isRealFloatingPointDataType( '' );
// returns false
bool = isRealFloatingPointDataType( 'foo' );
// returns false