how to round off a number to the nearest multiple of 25?

3 visualizzazioni (ultimi 30 giorni)
a=254
%a should be the multiple of 25 but greater than 254
%how to do that?

Risposte (1)

Stephen23
Stephen23 il 11 Mar 2019
>> a = 254;
>> 25*ceil(a/25)
ans = 275

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by