mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Improve min/max syntax in template docs (#17384)
This commit is contained in:
parent
c77eaf4013
commit
2ebab6fb75
@ -440,8 +440,8 @@ Some of these functions can also be used in a [filter](https://jinja.palletsproj
|
||||
- `round(x, "floor")` will always round down to `x` decimals
|
||||
- `round(x, "ceil")` will always round up to `x` decimals
|
||||
- `round(1, "half")` will always round to the nearest .5 value. `x` should be 1 for this mode
|
||||
- Filter `max` will obtain the largest item in a sequence.
|
||||
- Filter `min` will obtain the smallest item in a sequence.
|
||||
- Filter `[x, y, ...] | max` will obtain the largest item in a sequence.
|
||||
- Filter `[x, y, ...] | min` will obtain the smallest item in a sequence.
|
||||
- Filter `value_one|bitwise_and(value_two)` perform a bitwise and(&) operation with two values.
|
||||
- Filter `value_one|bitwise_or(value_two)` perform a bitwise or(\|) operation with two values.
|
||||
- Filter `ord` will return for a string of length one an integer representing the Unicode code point of the character when the argument is a Unicode object, or the value of the byte when the argument is an 8-bit string.
|
||||
|
Loading…
x
Reference in New Issue
Block a user