%% Round to Specified Number of Decimal Digits
% Round pi to the nearest 3 decimal digits.

Y = round(pi,3)

% Copyright 2012 The MathWorks, Inc.