Skip to content

double

Convert to double-precision floating-point.

S = double(X)

Returns X converted to double (64-bit IEEE-754). The default floating-point type for MathJet computation.

double(int32(5)) % 5.0
double('A') % 65
  • single — Convert to single-precision floating-point.
  • cast — Convert an array to a different element type.