How to round UP to 1 decimal value?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ramadhan Hakim
il 23 Ott 2020
Commentato: Ramadhan Hakim
il 23 Ott 2020
Suppose I have a value x = 6.543. I want to round it up to 6.6.
I tried
x = 6.543;
x_round = round(x,1);
But it always returns x_round=6.5
Thanks in advance!
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!