Rounds [code]s[/code] upward (towards positive infinity), returning the smallest whole number that is not less than [code]s[/code]. [codeblock] a = ceil(1.45)# a is 2.0 a = ceil(1.001) # a is 2.0 [/codeblock] See also [method floor], [method round], [method stepify], and [int].
Округляет [code]s[/code] вверх (в сторону положительной бесконечности), возвращая наименьшее целое число, которое больше или равно [code]s[/code]. [codeblock] i = ceil(1.45)# i равно 2 i = ceil(1.001) # i равно 2 [/codeblock]
[codeblock]
a = ceil(1.45) # a is 2.0
a = ceil(1.001) # a is 2.0
[/codeblock]
See also [method floor], [method round], [method stepify], and [int].
[codeblock]
i = ceil(1.45) # i равно 2
i = ceil(1.001) # i равно 2
[/codeblock]