| Fixed-Point Toolbox™ | ![]() |
Stored integer value of fi object as built-in int16
int16(a)
Fixed-point numbers can be represented as
![]()
or, equivalently,
![]()
The stored integer is the raw binary number, in which the binary point is assumed to be at the far right of the word.
int16(a) returns the stored integer value of fi object a as a built-in int16. If the stored integer word length is too big for an int16, or if the stored integer is unsigned, the returned value saturates to an int16.
int, int8, int32, uint8, uint16, uint32
![]() | int8 | int32 | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |