ROUND2DP

バージョン 1.0.0.0 (1.14 KB) 作成者: Andrew
Round a number to a given number of decimal places
ダウンロード: 1.2K
更新 2009/5/20

ライセンスの表示

This expands on the operation of the built-in ROUND function to provide functionality to round to a given number of decimal places. For example,

>> round(pi)
ans =
3

>> round2dp(pi,3)
ans =
3.142

引用

Andrew (2024). ROUND2DP (https://www.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersArithmetic Operations についてさらに検索
謝辞

ヒントを得たファイル: round2

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0