This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathfloor.xml
More file actions
63 lines (49 loc) · 2.17 KB
/
Copy pathfloor.xml
File metadata and controls
63 lines (49 loc) · 2.17 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<doc>
<legacy_id></legacy_id>
<name>floor</name>
<type>function</type>
<syntax>
<example>the floor of <i>number</i></example>
<example>floor(<i>number</i>)</example>
</syntax>
<synonyms>
</synonyms>
<summary><glossary tag="return">Returns</glossary> the greatest integer less than or equal to number.</summary>
<examples>
<example>floor(33.567) -- result is 33</example>
<example>floor(-6.3) -- result is -7</example>
</examples>
<history>
<introduced version="6.7">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<experimental version=""></experimental>
<nonexperimental version=""></nonexperimental>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Math, Logic, & Dates</category>
</classification>
<references>
<function tag="abs">abs Function</function>
<function tag="trunc">trunc Function</function>
<function tag="ceil">ceil Function</function>
</references>
<description>Use the <b>floor</b> <control_st tag="function">function</control_st> to return the greatest integer less than or equal to a number.<p></p><p><b>Parameters:</b></p><p>The <i>number</i> is any number, or <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a number.</p><p></p><p><b>Value:</b></p><p>The <b>floor</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> an <keyword tag="integer">integer</keyword>.</p><p></p><p><b>Comments:</b></p><p>The <b>floor</b> <control_st tag="function">function</control_st> is different from <function tag="round">round</function> in that floor completely ignores the fractional part of the number. For example, floor(5.1) <glossary tag="return">returns</glossary> 5, but floor(4.99) <glossary tag="return">returns</glossary> 4. This means that the <b>floor</b> function does not always <constant tag="return">return</constant> the <keyword tag="integer">integer</keyword> closest to the <i>number</i>.</p></description>
</doc>