Skip to Main Content Skip to Search
Product Documentation

double - Double-precision floating-point real-world value of fi object

Syntax

double(a)

Description

double(a) returns the real-world value of a fi object in double-precision floating point. double(a) is equivalent to a.double.

Fixed-point numbers can be represented as

or, equivalently as

Examples

The code

a = fi([-1 1],1,8,7);
y = double(a)
z = a.double

returns

y =

           -1      0.9922
z =

           -1      0.9922

See Also

single

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS