Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fix

MATLAB fix function


Description

Rounds toward zero.

Usage

fix(A)

Arguments

A

numeric to be rounded

Details

Simply invokes trunc.

Value

Returns vector containing integers by truncating the corresponding values of argument A toward zero.

Author(s)

See Also

Examples

fix(c(1.3, 2.5, 3.7))

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.