Main Content

isfloat

Determine whether input is floating-point data type

Syntax

y = isfloat(a)
y = isfloat(T)
y = isfloat(q)

Description

y = isfloat(a)returns1when theDataTypeproperty offiobjectaissingle, ordouble, and0otherwise.

y = isfloat(T)returns1when theDataTypeproperty ofnumerictypeobjectTissingle, ordouble, and0otherwise.

y = isfloat(q)returns1whenqis a floating-pointquantizer, and0otherwise.

Introduced in R2008a