How do I round up a number?
Ältere Kommentare anzeigen
Hi, I was wondering whether there's any function other than 'round(X)' that can round up a number? I'm trying not to use round(X) because every time I use it, I get an error: Subscript indices must either be real positive integers or logicals. Thanks
Akzeptierte Antwort
Weitere Antworten (1)
Jai
am 2 Nov. 2019
1 Stimme
how to make a decimal number to always round up to nearest integer
1 Kommentar
Steven Lord
am 2 Nov. 2019
Use the ceil function.
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!