# Difference between revisions of "Ceil"

Jump to navigation
Jump to search

ZachStrout (talk | contribs) (Created page with "<c>ceil</c> Returns the "ceiling", i.e. closest whole number greater than or equal to the given number. See also: floor === Arguments === {| class="wikitable" |- ! Para...") |
m (→Arguments) |
||

Line 7: | Line 7: | ||

{| class="wikitable" | {| class="wikitable" | ||

|- | |- | ||

− | ! Parameter Name !! | + | ! Parameter Name !! Type !! Meaning |

|- | |- | ||

| ''x'' || number, default 0 || number to get the ceiling of | | ''x'' || number, default 0 || number to get the ceiling of | ||

|} | |} | ||

+ | |||

== Example == | == Example == | ||

## Latest revision as of 03:40, 31 July 2020

`ceil`

Returns the "ceiling", i.e. closest whole number
greater than or equal to the given number.

See also: floor

### Arguments

Parameter Name | Type | Meaning |
---|---|---|

x |
number, default 0 | number to get the ceiling of |

## Example

```
ceil(41.2) // returns 42
```