Changes between Initial Version and Version 1 of Ticket #34363, comment 4
- Timestamp:
- Feb 22, 2023, 6:05:53 AM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34363, comment 4
initial v1 20 20 # adding 1 for possible rounding up e.g. (99.99, 1) -> 100.0 needs 4 digits 21 21 prec = abs(p) + before_comma + 1 22 return max(1, prec) 22 return max(1, prec) # 1 is the minimum precision for Decimal.quantize() 23 23 }}}