| Fixed-Point Toolbox™ | ![]() |
sdec(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.
sdec(a) returns the stored integer of fi object a in signed decimal format as a string.
The code
a = fi([-1 1],1,8,7); sdec(a)
returns
-128 127
![]() | scatter3 | semilogx | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |