forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathceil.lcdoc
More file actions
47 lines (29 loc) · 932 Bytes
/
Copy pathceil.lcdoc
File metadata and controls
47 lines (29 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Name: ceil
Type: function
Syntax: the ceil of <number>
Syntax: ceil(<number>)
Summary:
<return|Returns> the smallest integer greater than or equal to number.
Introduced: 6.7
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
ceil(33.567) -- result is 34
Example:
ceil(-6.3) -- result is -6
Parameters:
number:
Any number, or expression that evaluates to a number.
Returns:
The <ceil> <function> <return|returns> an <integer>.
Description:
Use the <ceil> <function> to return the greatest integer less than or
equal to a number.
The <ceil> function does not always <return(constant)> the <integer>
closest to the <number>.. For example, ceil(5.1)
<return(glossary)|returns> 6, but ceil(4.99) <return(glossary)|returns>
5.
References: return (constant), function (control structure),
trunc (function), abs (function), floor (function), return (glossary),
integer (keyword)
Tags: math