How to drop decimal values without rounding off?

3 views (last 30 days)
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 ?

Accepted Answer

Malcolm Lidierth
Malcolm Lidierth on 14 Mar 2013
Edited: Malcolm Lidierth on 14 Mar 2013

More Answers (0)


Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!