how to round the decimal values

2 vues (au cours des 30 derniers jours)
mahesh chathuranga
mahesh chathuranga le 18 Sep 2013
how to round up the decimal values in to integers.

Réponse acceptée

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

Plus de réponses (1)

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

Catégories

En savoir plus sur Elementary Math dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by