How to drop decimal values without rounding off?

1 回表示 (過去 30 日間)
Ranjani
Ranjani 2013 年 3 月 14 日
I do not want to apply Ceil/round/floor commands. I just want the digits before the decimal points. Example: 959.589 as 959 and also 959.324 as 959. Is it possible to do ?

採用された回答

Malcolm Lidierth
Malcolm Lidierth 2013 年 3 月 14 日
編集済み: Malcolm Lidierth 2013 年 3 月 14 日
959.589-rem(959.589,1)
  1 件のコメント
Ranjani
Ranjani 2013 年 3 月 14 日
Hey Malcolm, It worked! thank you so much.

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

その他の回答 (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