Documentation

storedIntegerToDouble

Convert stored integer value offiobject to built-in double value

Syntax

d = storedIntegerToDouble(f)

Description

d = storedIntegerToDouble(f)converts the stored integer value offiobject,f, to a double-precision floating-point value,d.

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

Input Arguments

f

fi object

Examples

collapse all

Convert the stored integer of afivalue to a double-precision value. Use theclassfunction to verify that the stored integer is a double-precision value.

f = fi(pi,1,16,12); d = storedIntegerToDouble(f); dtype = class(d)
dtype = 'double'

Extended Capabilities

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

Introduced in R2012a

Was this topic helpful?