Next Previous Contents

27. double

Synopsis

Convert an object to double precision

Usage

result = double (x)

Description

The double function typecasts an object x to double precision. For example, if x is an array of integers, an array of double types will be returned. If an object cannot be converted to Double_Type, a type-mismatch error will result.

Notes

The double function is equivalent to the typecast operation

     typecast (x, Double_Type)
To convert a string to a double precision number, use atoi function.
See Also

typecast, atoi, int


Next Previous Contents