We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0509adf commit 6c8f6baCopy full SHA for 6c8f6ba
template/startup_scripts/0002_data.py
@@ -41,7 +41,7 @@ def _dynamic_round(number):
41
decimal_number = Decimal(str(number))
42
43
# Dynamically determine precision based on magnitude
44
- precision = max(1, 16 - decimal_number.adjusted()) # 16 digits of precision
+ precision = max(1, 8 - decimal_number.adjusted()) # 8 digits of precision
45
46
with localcontext() as ctx:
47
ctx.prec = precision # Set the dynamic precision
0 commit comments