how to round the decimal values

1 次查看(过去 30 天)
how to round up the decimal values in to integers.

采纳的回答

Andrei Bobrov
Andrei Bobrov 2013-9-18
Please read about round and about int8 and other

更多回答(1 个)

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by