how to round the decimal values

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 18 de Sept. de 2013

0 votos

Please read about round and about int8 and other

Más respuestas (1)

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

Categorías

Más información sobre Elementary Math en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by