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 ?

 Réponse acceptée

Malcolm Lidierth
Malcolm Lidierth le 14 Mar 2013
Modifié(e) : Malcolm Lidierth le 14 Mar 2013

0 votes

959.589-rem(959.589,1)

Plus de réponses (0)

Catégories

En savoir plus sur Entering Commands dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by