at_most 限制数字的最大值

限制数字的最大值。

at_most 过滤器会确保数值不高于你设定的最大值(at_most 的值)。

输入

{{ 4 | at_most: 5 }}
{{ 4 | at_most: 3 }}

输出

4
3