How to round UP to 1 decimal value?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ramadhan Hakim
le 23 Oct 2020
Commenté : Ramadhan Hakim
le 23 Oct 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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!