ceil
Round a floating point number up to the nearest greater integer.
Syntax
{{ number | ceil }}Example
{% assign hours = 3.2 %}{{ hours | ceil }} hours estimatedOutput
4 hours estimatedThe ceil filter rounds any fractional or decimal number upward to the next whole integer. It ensures calculations that yield fractional values are presented as safe, conservative whole units.
On keyword combination landing pages, ceil converts fractional calculations into clean customer-facing metrics like estimated turnaround hours or project shifts. For example: {{ row.duration_minutes | divided_by: 60.0 | ceil }} hours average service time. This gives customers clear, rounded estimates without confusing fractional decimals.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
