The FLTARR function creates a floating-point vector or array of the specified dimensions.

Examples


Create F, a 3-element by 3-element floating-point array with each element set to 0.0 by entering:

F = FLTARR(3, 3)

Syntax


Result = FLTARR( D1[, ..., D8] [, /NOZERO] )

Return Value


Returns a single-precision, floating-point vector or array.

Arguments


Di

Either an array or a series of scalar expressions specifying the dimensions of the result. If a single argument is specified, it can be either a scalar expression or an array of up to eight elements. If multiple arguments are specified, they must all be scalar expressions. Up to eight dimensions can be specified.

Keywords


NOZERO

Normally, FLTARR sets every element of the result to zero. Set this keyword to inhibit zeroing of the array elements and cause FLTARR to execute faster.

Version History


Original

Introduced

See Also


BYTARR, BOOLARR, COMPLEXARR, DBLARR, DCOMPLEXARR, INTARR, LON64ARR, LONARR, MAKE_ARRAY, STRARR, UINTARR, ULON64ARR, ULONARR