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)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by