Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix for
significant-digits
to not error if the input was 0 (#863)
In the last `pr` there was an error, that I just discovered and fixed. Also I added test for this case in future, and some test for negative numbers ``` 0 | signfificant digits 2 33 │ 34 │ let insignif_position = $n - 1 - ($num | math abs | math log 10 | math floor) · ──┬─ ────┬─── · │ ╰── 'math log' undefined for values outside the open interval (0, Inf). · ╰── value originates from here 35 │ ╰──── ``` I'm sorry for hassle here 😞
- Loading branch information