1、在命令窗口输入ceil(),括号内输入需要向上取整的数字。
2、实验结果1
>> ceil(1.2)
ans =
2
3、实验结果2
>> ceil(2.5)
3
4、实验结果3
>> ceil(-1.5)
-1