how to round the decimal values

2 Ansichten (letzte 30 Tage)
mahesh chathuranga
mahesh chathuranga am 18 Sep. 2013
how to round up the decimal values in to integers.

Akzeptierte Antwort

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

Weitere Antworten (1)

Roger Stafford
Roger Stafford am 18 Sep. 2013
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 Help 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