fix

From DavinciWiki
Jump to: navigation, search

Description

Fix - rounds toward zero.

Arguments and Return Values

Arguments: Any numeric array

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

When no argument is input, fix prints its description, as shown below.

Usage

Syntax: fix(x)

'x' - any numeric array

Returns same format as input.

Examples

dv> fix()

Fix - round toward zero
fix(x)
Works for arrays
S.Marshall 02-02-2008

0
dv> a
9x1x1 array of float, bsq format [36 bytes]
-2.00000        -1.50000        -1.00000        -0.500000       0.00000 0.500000        1.00000 1.50000 2.00000
dv> fix(a)
9x1x1 array of float, bsq format [36 bytes]
-2.00000        -1.00000        -1.00000        -0.00000        0.00000 0.00000 1.00000 1.00000 2.00000

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-22-2008
Modified On: 02-22-2008

Personal tools