how to round the decimal values

1 view (last 30 days)
how to round up the decimal values in to integers.

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 18 Sep 2013
Please read about round and about int8 and other

More Answers (1)

Roger Stafford
Roger Stafford on 18 Sep 2013
If I understand what you mean by "round up" to integers, you need the 'ceil' function:
ceil(3.01) --> 4

Tags

Community Treasure Hunt

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

Start Hunting!