www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RoundToSpecifiedNumberOfDecimalDigitsExample.m
%% Round to Specified Number of Decimal Digits % Round |pi| to the nearest 3 decimal digits. Y = round(pi,3)