minus
Subtract a specified number from the input number to compute the difference.
Syntax
{{ number | minus: subtrahend }}Example
{% assign price = 80 %}{{ price | minus: 15 }} dollars offOutput
65 dollars offThe minus filter performs arithmetic subtraction, deducting the provided subtrahend from the input number to calculate the net difference.
In programmatic SEO directories, minus computes instant discount savings, promotional rebates, or remaining reservation slots. For example: Save ${{ row.regular_fee | minus: row.promo_fee }} when you book online. Showing concrete dollar savings directly on local service pages significantly boosts lead conversion rates.
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
