integer from the decimal
1 回表示 (過去 30 日間)
古いコメントを表示
Hello to everyone,
I want to take the integer part of a decimal number.For example, from the number 3.5 I want to get the 3.Does anybody know if there is a function to do this?
Thanks
0 件のコメント
採用された回答
Walter Roberson
2011 年 3 月 20 日
fix(3.5)
Other closely related functions include floor(), ceil(), and round()
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!