plus

Adds a number to another number.
{{ 4 | plus: 2 }}
6
{{ 16 | plus: 4 }}
20
{{ 183.357 | plus: 12 }}
195.357

minus

Subtracts a number from another number.
{{ 4 | minus: 2 }}
2
{{ 16 | minus: 4 }}
12
{{ 183.357 | minus: 12 }}
171.357

times

Multiplies a number by another number.
{{ 3 | times: 2 }}
6
{{ 24 | times: 7 }}
168
{{ 183.357 | times: 12 }}
2200.284

divided_by

Divides a number by another number. The result is the string obtained by JavaScript .toString() of the result number.
{{ 16 | divided_by: 4 }}
4
{{ 5 | divided_by: 3 }}
1.6666666666666667
In JavaScript, float and integer shares the same type number and we cannot tell the difference. For example:
// always true
5.0 === 5
You’ll need to pass another integerArithmetic argument to enforce integer divide:
{{ 5 | divided_by: 3, true }}
1

modulo

Returns the remainder of a division operation.
{{ 3 | modulo: 2 }}
1
{{ 24 | modulo: 7 }}
3
{{ 183.357 | modulo: 12 }}
3.3569999999999993

abs

Liquid filter that returns the absolute value of a number.
{{ -17 | abs }}
17
{{ 4 | abs }}
4
abs will also work on a string that only contains a number:
{{ "-19.86" | abs }}
19.86

at_least

Limits a number to a minimum value.
{{ 4 | at_least: 5 }}
5
{{ 4 | at_least: 3 }}
4

at_most

Limits a number to a maximum value.
{{ 4 | at_most: 5 }}
4
{{ 4 | at_most: 3 }}
3

ceil

Rounds the input up to the nearest whole number. LiquidJS tries to convert the input to a number before the filter is applied.
{{ 1.2 | ceil }}
2
{{ 2.0 | ceil }}
2
{{ 183.357 | ceil }}
184
Here the input value is a string:
{{ "3.5" | ceil }}
4

floor

Rounds the input down to the nearest whole number. LiquidJS tries to convert the input to a number before the filter is applied.
{{ 1.2 | floor }}
1
{{ 2.0 | floor }}
2
{{ 183.357 | floor }}
183
Here the input value is a string:
{{ "3.5" | floor }}
3

round

Rounds a number to the nearest integer or, if a number is passed as an argument, to that number of decimal places.
{{ 1.2 | round }}
1
{{ 2.7 | round }}
3
{{ 183.357 | round: 2 }}
183.36

sum

Computes the sum of all the numbers in an array. An optional argument specifies which property of the array’s items to sum up. In this example, assume the object cart.products contains an array of all products in the cart of a website. Assume each cart product has a qty property that gives the count of that product instance in the cart. Using the sum filter we can calculate the total number of products in the cart.
The cart has {{ order.products | sum: "qty" }} products.
The cart has 7 products.