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

4 visualizaciones (últimos 30 días)
Tiruvoipati Aishwarya Rao
Tiruvoipati Aishwarya Rao el 11 de Mzo. de 2019
Respondida: Stephen23 el 11 de Mzo. de 2019
a=254
%a should be the multiple of 25 but greater than 254
%how to do that?

Respuestas (1)

Stephen23
Stephen23 el 11 de Mzo. de 2019
>> a = 254;
>> 25*ceil(a/25)
ans = 275

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by