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

11 views (last 30 days)
a=254
%a should be the multiple of 25 but greater than 254
%how to do that?

Answers (1)

Stephen23
Stephen23 on 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!