Skip to content

double

builtin · libnexusinterp/nexus-value/ov-proprietary.cc

: y = double (x)

Return x recast in the double-precision floating-point class.

The shape of x is preserved and each element is represented as a 64-bit real (or complex) value. Logical, character, integer, and single-precision inputs are all accepted, and a sparse input stays sparse. Exactly one argument is required.