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].
Membulatkan [code]s[/code] keatas, hingga tak terhingga (bilangan positif). Menghasilkan bilangan asli yang tidak kurang dari [code]s[/code] [codeblock] i = ceil(1.45) # i menjadi 2 i = ceil(1.001) # i menjadi 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 menjadi 2
i = ceil(1.001) # i menjadi 2
[/codeblock]