Round down lowest number in a decimal number

8 ビュー (過去 30 日間)
Martin
Martin 2018 年 4 月 11 日
コメント済み: Martin 2018 年 4 月 11 日
Hello, say I have a number 4.214513. Then I need to return 4.21. Likewise if I have 4.219999, I need to return 4.21. Is there any function or other method to achieve this in Matlab?

採用された回答

James Tursa
James Tursa 2018 年 4 月 11 日
E.g.,
x = whatever
result = floor(x*100)/100;
  1 件のコメント
Martin
Martin 2018 年 4 月 11 日
great, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by