Help CenterHelp Center
Determine whether input is single-precision data type
tf = issingle (a)
tf = issingle (T)
example
tf = issingle (a)returns1(true) when theDataTypeproperty offiobjectaissingle. Otherwise, it returns0(false).
a
1
true
DataType
fi
single
0
false
tf = issingle (T)returns1(true) when theDataTypeproperty ofnumerictypeobjectTissingle. Otherwise, it returns0(false).
T
numerictype
collapse all
创建一个fiobject and determine whether it is single-precision data type.
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf =logical0
创建一个numerictypeobject and determine whether it is single-precision data type.
T = numerictype('Single')
T = DataTypeMode: Single
tf =logical1
Inputfiobject, specified as a scalar, vector, matrix, or multidimensional array.
Data Types:fi
Inputnumerictypeobject, specified as a scalar.
isboolean|isdouble|isfixed|isfloat|isscaleddouble|isscaledtype|isscalingbinarypoint|isscalingslopebias|isscalingunspecified
isboolean
isdouble
isfixed
isfloat
isscaleddouble
isscaledtype
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
You have a modified version of this example. Do you want to open this example with your edits?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office