how to round the decimal values

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 18 Sep. 2013

0 Stimmen

Please read about round and about int8 and other

Weitere Antworten (1)

Roger Stafford
Roger Stafford am 18 Sep. 2013

1 Stimme

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

Kategorien

Mehr zu Elementary Math finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by