Site hosted by Angelfire.com: Build your free website today!

fixdec

PURPOSE ^

FIXDEC Round towards zero with a specified number of decimals.

SYNOPSIS ^

function y = fixdec(x, n)

DESCRIPTION ^

FIXDEC Round towards zero with a specified number of decimals.

   Y = FIXDEC(X, N) rounds the elements of X to N decimals.

   For instance, fixdec(10*sqrt(2) + i*pi/10, 4) returns 14.1421 + 0.3141i

   See also: FIX, FLOOR, CEIL, ROUND, FIXDIG, ROUNDDEC, ROUNDDIG.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004