int

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Convert an object to INT format.

Arguments and Return Values

Arguments: Any three dimensional numeric array

Return Value: The array converted into integer precision

Usage

Syntax: int(object = VAL)

The int() function copies and converts an object to INT format. Any values above or below the maximum representable values of -2^31,2^31 are set to the closest representable value. This function is equivalent to format(object=VAL, format=INT).

Numbers are rounded down to the nearest lower integer value.

Examples

dv> a
5x5x1 array of float, bsq format [100 bytes]
60.5976 99.0922 84.5551 92.4065 38.1034
71.0337 67.3363 60.3515 92.8836 57.0839
50.7524 99.6602 54.6453 10.1191 72.1275
91.2858 36.1583 60.0832 70.1083 57.8446
14.7666 65.7095 52.7539 25.3694 53.5639

dv> int(a)
5x5x1 array of int, bsq format [100 bytes]
60      99      84      92      38
71      67      60      92      57
50      99      54      10      72
91      36      60      70      57
14      65      52      25      53

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