int
Get stored integer value of a fi object
Syntax
Description
Examples
Get the Stored Integer Value of a fi Object
Create a fi
object with default settings. Use the int
function to get its stored integer value. The output is an int16
because the input used the default word length of 16-bits.
a = fi(pi); b = int(a)
b = int16
25736
Create a fi
object that uses a 20-bit word length and get the stored integer value of the fi
object.
a = fi(pi,1,20); b = int(a)
b = int32
411775
The output is an int32
to accommodate the larger input word length.
Input Arguments
a
— Fixed-point numeric object
scalar | vector | matrix | multidimensional
array
Fixed-point numeric object from which you want to get the stored integer value. The word length of the input determines the data type of the output.
Data Types: fi
Complex Number Support: Yes
Output Arguments
i
— Stored integer value
scalar | vector | matrix | multidimensional
array
Stored integer value of the input fi
object, returned
as one of the built-in integer data types. The word length of the input
determines the data type of the output. The output has the same dimensions
as the input.
Version History
Introduced in R2006a
MATLAB Command
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.
Select a Web Site
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
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)