How to drop decimal values without rounding off?

6 visualizaciones (últimos 30 días)
Ranjani
Ranjani el 14 de Mzo. de 2013
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 ?

Respuesta aceptada

Malcolm Lidierth
Malcolm Lidierth el 14 de Mzo. de 2013
Editada: Malcolm Lidierth el 14 de Mzo. de 2013
959.589-rem(959.589,1)
  1 comentario
Ranjani
Ranjani el 14 de Mzo. de 2013
Hey Malcolm, It worked! thank you so much.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by