Skip to content

Commit 7c60aa2

Browse files
committed
Update round_to_significant_digits
1 parent 55c98d2 commit 7c60aa2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/components/sensor/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ filters:
255255

256256
{{< include "filter/round_to_multiple_of.md" >}}
257257

258-
### `round_to_sigfig`
258+
### `round_to_significant_digits`
259259

260-
{{< include "filter/round_to_sigfig.md" >}}
260+
{{< include "filter/round_to_significant_digits.md" >}}
261261

262262
### `skip_initial`
263263

content/components/sensor/filter/round_to_sigfig.md renamed to content/components/sensor/filter/round_to_significant_digits.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ description: ""
33
headless: true
44
---
55

6-
Rounds the value to the specified number of significant figures. Takes an integer greater than zero.
6+
Rounds the value to the specified number of significant digits. Takes an integer greater than zero.
77

88
```yaml
99
- platform: ...
1010
filters:
11-
- round_to_sigfig: 2
11+
- round_to_significant_digits: 2
1212
# 3.14159 -> 3.1
1313
# 157079 -> 160000
1414

1515
- platform: ...
1616
filters:
17-
- round_to_sigfig: 4
17+
- round_to_significant_digits: 4
1818
# 3.14159 -> 3.142
1919
# 157079 -> 157100
2020
```

0 commit comments

Comments
 (0)