double

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Convert an object to DOUBLE format.

Arguments and Return Values

Arguments: Any three dimensional numeric array

Return Value: The array converted into double precision

Warning: Using double() on a decimal number may not give you the result you expect. See intermediate float bug for details.

Usage

Syntax: float(object = VAL)

The double() function copies and converts an object to DOUBLE format. The behavior of double() when dealing with values out of the representable range, 1.7e308 to 4.9e-324, is undefined. This function is equivalent to format(object=VAL, format=DOUBLE).

Examples

dv> a
5x5x1 array of byte, bsq format [25 bytes]
25      74      36      11      55
81      62      12      37      99
27      29      58      34      5
85      41      23      97      48
66      88      25      30      74

dv> double(a)
5x5x1 array of double, bsq format [200 bytes]
25.0000 74.0000 36.0000 11.0000 55.0000
81.0000 62.0000 12.0000 37.0000 99.0000
27.0000 29.0000 58.0000 34.0000 5.00000
85.0000 41.0000 23.0000 97.0000 48.0000
66.0000 88.0000 25.0000 30.0000 74.0000

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools