fix

Round towards zero

Syntax

  • C = fix(A)

Input argument

  • A - a variable

Output argument

  • C - result of fix.

Description

fix returns an integer matrix made of nearest rounded integers toward zeros.

Example

fix(pi)

See also

floor, round, ceil.

History

Author

Allan CORNET

Last updated