sdec

Signed decimal representation of stored integer of `fi` object

Syntax

```sdec(a) ```

Description

Fixed-point numbers can be represented as

`$real\text{-}worldvalue={2}^{-fractionlength}×storedinteger$`

or, equivalently as

`$real\text{-}worldvalue=\left(slope×storedinteger\right)+bias$`

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.

Examples

The code

```a = fi([-1 1],1,8,7); sdec(a)```

returns

```ans = '-128 127'```

Version History

Introduced before R2006a