round

From DavinciWiki
Jump to: navigation, search

Description

Rounds to the nearest integer value.

Arguments and Return Values

Arguments: Any numeric array

Return Value: A rounded array of the same size as the input

Usage

Syntax: round(object)

Produces a INT value.

Examples

 dv> a
 2x3x1 array of float, bsq format [24 bytes]
 77.8142 33.7228
 84.8097 43.0978
 78.6413 5.27735

 dv> round(a)
 2x3x1 array of int, bsq format [24 bytes]
 78          34
 85          43
 79          5

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-15-2006
Modified On: 02-22-2008

Personal tools