ceil

ceil

Rounds the input up to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.

Input

{{ 1.2 | ceil }}

Output

2

Input

{{ 2.0 | ceil }}

Output

2

Input

{{ 183.357 | ceil }}

Output

184

Here the input value is a string:

Input

{{ "3.5" | ceil }}

Output

4

© 2005, 2006 Tobias Luetke
Licensed under the MIT License.
https://shopify.github.io/liquid/filters/ceil/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部