idllib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

analysis/

mg_round.pro

includes main-level program

top source mg_round

result = mg_round(x [, roundTo] [, /l64])

Rounds value to integer value (or to nearest float value). Allows rounding to nearest roundTo value, i.e., round to the nearest 0.1.

Return value

numeric

Parameters

x in required type=numeric (array)

value to round

roundTo in optional type=numeric scalar default=1

value to round to

Keywords

l64 in optional type=boolean

set to return result as a 64-bit integer

File attributes

Modification date: Tue Sep 13 16:47:16 2011
Lines: 39
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.