A rounding problem that falls under ceil and round
    8 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    SETH GERSBACH
 il 20 Mar 2022
  
    
    
    
    
    Commentato: SETH GERSBACH
 il 20 Mar 2022
            I would like to round a number up to the nearest 100 place 
i.e 
x = 20
y = round(x)
y = 100
I'm doing this to record the maximun possible value, I know ceil will always round up but I can't set it to a set value
here is the current code
distance = 50; % Distance the package will travel (Km)
distnace_check = round(distance,-2);
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Elementary Math in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!