ROUND2

版本 1.0.0.0 (758 字节) 作者: Mukhtar Ullah
Round to a specified number of decimals.
5.6K 次下载
更新时间 2005/4/14

无许可证

ROUND2 Round to a specified number of decimals.

ROUND2(A) returns the same as ROUND(A).
ROUND2(A, 'even') returns the same as ROUND(A). Elements with
fractional part equal to 0.5 are rounded to even integers.
ROUND2(A, N) rounds the elements of A to decimals specified in N.
ROUND2(A, N,'even') rounds the elements of A to decimals specified
in N. Elements with 5 as the (N+1)-th digit after decimal are rounded
to even numbers.

See also: ROUND, FIX, FLOOR, CEIL, FIX2.

引用格式

Mukhtar Ullah (2024). ROUND2 (https://www.mathworks.com/matlabcentral/fileexchange/6077-round2), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

improvement and corrected description