Next Previous Contents

27. double


Convert an object to double precision


result = double (x)


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.


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