How to drop decimal values without rounding off?

1 次查看(过去 30 天)
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by