How to drop decimal values without rounding off?

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 日

0 投票

959.589-rem(959.589,1)

1 件のコメント

Ranjani
Ranjani 2013 年 3 月 14 日
Hey Malcolm, It worked! thank you so much.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by