Table Of Contents

double

Version:
    Last Modified: January 9, 2017

    Converts input elements to double-precision, floating-point numbers.

    Syntax

    c = double(a)

    Inputs

    a

    Scalar or array of any dimension. The elements in a can be single-precision numbers, double-precision numbers, complex numbers, integers, unsigned integers, or Boolean values.

    Outputs

    c

    Elements in a as double-precision, floating-point numbers. c is a scalar or an array of any dimension. If a is a complex number, this function converts the real and imaginary parts of the number separately and then returns a complex number that consists of those parts.

    Special Cases

    If an element in a is greater than the maximum positive number, the corresponding element in c is Inf. If an element in a is less than the minimum positive number and greater than the maximum negative number, the corresponding element in c is 0. If an element in a is less than the minimum negative number, the corresponding element in c is -Inf.

    A = int8(12.3)
    B = double(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics