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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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 ?

*No products are associated with this question.*

Answer by Malcolm Lidierth
on 14 Mar 2013

Edited by Malcolm Lidierth
on 14 Mar 2013

Accepted answer

959.589-rem(959.589,1)

## 1 Comment

## Andrei Bobrov (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/67162#comment_136450

use

fix