Stored integer value of fi
object
st_int = storedInteger(f)
returns the stored integer
value of fi object st_int
= storedInteger(f)f
.
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.
Find the stored integer values for two fi objects. Use the class
function to display the stored
integer data types.
x = fi([0.2 0.3 0.5 0.3 0.2]); in_x = storedInteger(x); c1 = class(in_x) numtp = numerictype('WordLength',17); x_n = fi([0.2 0.3 0.5 0.3 0.2],'numerictype',numtp); in_xn = storedInteger(x_n); c2 = class(in_xn)