Skip to content

Commit 4a1f62b

Browse files
committed
use zero_threshold=5e-13 for near-zero handling
1 parent d47af8f commit 4a1f62b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/merge_expected.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def round_to_digits(value: str, digits: int) -> str:
4141
return sign + str(rounded)
4242

4343

44-
def find_common_precision(a: str, b: str, min_sig_figs: int = 6, zero_threshold: float = 1e-14) -> str:
44+
def find_common_precision(a: str, b: str, min_sig_figs: int = 6, zero_threshold: float = 5e-13) -> str:
4545
"""
4646
Find the longest decimal string that both values round to.
4747

0 commit comments

Comments
 (0)