WOLFRAM

"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)Summary of the most common use cases

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

Out[1]=1
Out[2]=2

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:

Out[1]=1

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:

Out[1]=1

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

Out[1]=1

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

Out[2]=2

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

Out[3]=3