| Contents | Index |
dec(a)
dec(a) returns the stored integer of fi object a in unsigned decimal format as a string. dec(a) is equivalent to a.dec.
.
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.
The code
a = fi([-1 1],1,8,7); y = dec(a) z = a.dec
returns
y = 128 127 z = 128 127
bin | hex | oct | sdec | storedInteger

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |