MATLAB Answers


How to drop decimal values without rounding off?

Asked by Ranjani
on 14 Mar 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 ?

  1 Comment

use fix


No products are associated with this question.

1 Answer

Answer by Malcolm Lidierth
on 14 Mar 2013
Edited by Malcolm Lidierth
on 14 Mar 2013
 Accepted answer


  1 Comment

on 14 Mar 2013

Hey Malcolm, It worked! thank you so much.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!