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

3 次查看(过去 30 天)
a=254
%a should be the multiple of 25 but greater than 254
%how to do that?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by