"Real64" (Compiled Type)

"Real64"

represents an IEEE doubleprecision real atomic type specifier.

Details

  • "Real64" can be used in Typed and related constructs to specify a type.

Properties

  • Values held by "Real64" range from -16^^.FFFFFFFFFFFFF8*^256 to 16^^.FFFFFFFFFFFFF8*^256.

Conversions

    From Expressions

  • Suitably sized Real expressions can be converted into compiled elements with the type "Real64".
  • To Expressions

  • Compiled elements with the type "Real64" can be converted into Real expressions.
  • Arithmetic

  • "Real64" compiled elements are automatically promoted to complex elements when they are combined in binary arithmetic operations.
  • "Real32" compiled elements are automatically promoted to "Real64" elements when they are combined in binary arithmetic operations.
  • Integers are automatically promoted to "Real64" when they are combined in binary arithmetic operations.

Runtime Errors

    Domain

  • "Real64" can give a runtime error if it is used in an operation that has a restricted input domain.
  • Overflow

  • "Real64" can give a runtime error if it is used in an operation that overflows.

Examples

Basic Examples  (4)

"Real64" can be used as an input and output from a CompiledCodeFunction:

A domain error can take place while running the function. The computation is terminated, a message is issued and the Wolfram Engine is used to compute the result:

An overflow causes an error while running the function. The computation is terminated, a message is issued and the Wolfram Engine is used to compute the result:

The "Real64" argument is automatically promoted when combined with a complex number:

The "Real32" argument is automatically promoted when combined with a "Real64":

The "Integer8" argument is automatically promoted when combined with a "Real64":