DOUBLE (Reserved Word)

image\trumpet2.gif Disclaimer

The double reserved word used in a variable declaration statement to explicitly set the data type of a variable to double-precision (64-bit) floating point.  The data type of a variable in the main body of an EasyLanguage document is automatically set to double if the initial value parameter is determined to be a double floating point numeric value.

A variable of this type can have a double floating point numeric value.

Remarks

The double keyword is an alias of elsystem.builtintype.doubleval and allows you to use the methods associated with that class (such as .ToString()) on variables declared with the double data type.

Example

In the main body of a document:

Var: DOUBLE MyVar1(1345.6097);  // in this case, the data type is optional and the initial value is required

In a method:

Var: double MyVar2;  // in this case, the data type is required and no initial value is allowed

  See Variable for other syntax parameters.

An optional parameter used in a variable declaration statement to set the data type of a numeric variable to double.   By default, the data type of a variable is automatically set if no optional parameter is used.

Example

variables:

double MyDbl( 0 );  // the data type of MyDbl explicitly assigned as double

 

  See Variable and Inputs for additional syntax information.

TradeStation-Compatible DLL's

Double also is used with custom DLLs designed to be called from EasyLanguage. Refer to the documentation of the EasyLanguage Extension Software Development Kit (SDK) for more information.