From 57f83933fd8a86f84f3176388604e1c86d762f86 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 13 Mar 2015 16:11:12 -0700 Subject: [PATCH] Document `ceil` --- _filters/ceil.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 _filters/ceil.md diff --git a/_filters/ceil.md b/_filters/ceil.md new file mode 100644 index 00000000..e6fbc489 --- /dev/null +++ b/_filters/ceil.md @@ -0,0 +1,14 @@ +--- +title: ceil +--- + +`ceil` rounds the input up to the nearest whole number. + +| Input | Output | +|--------------------:|:-------| +| `{ 1.2 | ceil }` | 2 | +| `{ 1.7 | ceil }` | 2 | +| `{ 2.0 | ceil }` | 2 | +| `{ "18.3" | ceil }` | 19 | + +It will attempt to cast any input to a number. \ No newline at end of file