Rounding to next integer
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nicholas Salce
am 12 Okt. 2016
Kommentiert: Nicholas Salce
am 12 Okt. 2016
I am trying to create a program to calculate a module size for solar panels. The answers can only be a whole integer value. I tried using round() to do this but in a case where the decimal value is below 0.5 it will round down. I would like it to round all values to the next whole integer. For instance if the calculation gives an answer of 2.1 I want output value to be 3.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!