fi
double
numerictype
Determine whether input is double-precision data type
tf = isdouble(a)
tf = isdouble(T)
example
tf = isdouble(a) returns 1 (true) when the DataType property of fi object a is double. Otherwise, it returns 0 (false).
a
1
true
DataType
0
false
tf = isdouble(T) returns 1 (true) when the DataType property of numerictype object T is double. Otherwise, it returns 0 (false).
T
collapse all
Create a fi object and determine if its data type is double.
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 0
a = fi(pi,'DataType','double')
a = 3.1416 DataTypeMode: Double
tf = logical 1
Create a numerictype object and determine if its data type is double.
T = numerictype
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
T = numerictype('Double')
T = DataTypeMode: Double
Input fi object, specified as a scalar, vector, matrix, or multidimensional array.
Data Types: fi
Input numerictype object, specified as a scalar.
isboolean | isfixed | isfloat | isscaleddouble | isscaledtype | isscalingbinarypoint | isscalingslopebias | isscalingunspecified | issingle
isboolean
isfixed
isfloat
isscaleddouble
isscaledtype
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
issingle
You have a modified version of this example. Do you want to open this example with your edits?