how to round the decimal values

1 visualización (últimos 30 días)
mahesh chathuranga
mahesh chathuranga el 18 de Sept. de 2013
how to round up the decimal values in to integers.

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 18 de Sept. de 2013
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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by