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

조회 수: 3 (최근 30일)
Tiruvoipati Aishwarya Rao
Tiruvoipati Aishwarya Rao 2019년 3월 11일
답변: Stephen23 2019년 3월 11일
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