int
Get and set stored integer value of fi object
Syntax
Description
returns
the stored integer value of y = int(a)fi object a. The
stored integer y is returned as one of the built-in integer
data types.
The real-world value of a fi object can be represented
as
When the bias is zero and the slope is a power of two, commonly called binary-point scaling, this is often represented as
Examples
Input Arguments
Output Arguments
Limitations
Alternative Functionality
Function
The int and storedInteger functions both
return the stored integer value of a fi object. You can use the
int function to both get and set the stored integer of a
fi
object:
a = fi(pi);
y = int(a) %gety = int16 25736
a = fi(pi); a.int = 3; %set y = a.int %get
y = int16 3
storedInteger function
only to get the stored integer value of a fi
object.a = fi(pi); y = storedInteger(a)
y = int16 25736
storedInteger function cannot be
used to set the stored integer value of a fi object.Version History
Introduced in R2006a