how to round the decimal values

1 visualizzazione (ultimi 30 giorni)
how to round up the decimal values in to integers.

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 18 Set 2013
Please read about round and about int8 and other

Più risposte (1)

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

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by