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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by