Skip to content

Round To Multiple Of Filter

Rounds the value to the nearest multiple. Takes a float greater than zero.

# Example configuration entry
filters:
- round_to_multiple_of: 10
# 123 -> 120
# 126 -> 130
# Example configuration entry
filters:
- round_to_multiple_of: 0.25
# 3.1415 -> 3.25
# 1.6180 -> 1.5