Main Content


Convert stored integer value of fi object to built-in double value



d = storedIntegerToDouble(a) converts the stored integer value of fi object, a, to a double-precision floating-point value, d.

If the input word length is greater than 52 bits, a quantization error may occur. Inf is returned if the stored integer value of the input fi object is outside the representable range of built-in double values.


collapse all

Convert the stored integer of a fi value to a double-precision value. Use the class function to verify that the stored integer is a double-precision value.

a = fi(pi,1,16,12)
a = 

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 12
d = storedIntegerToDouble(a)
d = 12868
dtype = class(d)
dtype = 

Input Arguments

collapse all

Value to convert, specified as a fi object.

Data Types: fi
Complex Number Support: Yes

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2012a

See Also

| |