Effacer les filtres
Effacer les filtres

How to round number up to a specific number of decimal places?

18 vues (au cours des 30 derniers jours)
Paulo Silva
Paulo Silva le 3 Août 2020
Suppose I have a variable x=0.34; is there a function (or how would one look like) to round this number up to, say 0.4 (next highest number with one decimal place)?
Just like ceil, but with decimals?

Réponse acceptée

Alan Stevens
Alan Stevens le 3 Août 2020

Plus de réponses (0)

Catégories

En savoir plus sur Logical 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!

Translated by