ceil at specified decima

Hi:
Matlab "round" function can specify which decima to "round at", but there is no similar feature to "ceil" function.
for example, integer 1234,
round(1234,-1) get a result 1230, but is there any quick way to get number 1240?
Thanks!

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Function Creation 的更多信息

提问:

2022-11-18

回答:

dpb
2022-11-18

Community Treasure Hunt

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

Start Hunting!

Translated by