Skip to content

Commit 6c8f6ba

Browse files
committed
Decrease precision
1 parent 0509adf commit 6c8f6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/startup_scripts/0002_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _dynamic_round(number):
4141
decimal_number = Decimal(str(number))
4242

4343
# Dynamically determine precision based on magnitude
44-
precision = max(1, 16 - decimal_number.adjusted()) # 16 digits of precision
44+
precision = max(1, 8 - decimal_number.adjusted()) # 8 digits of precision
4545

4646
with localcontext() as ctx:
4747
ctx.prec = precision # Set the dynamic precision

0 commit comments

Comments
 (0)