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