Changes between Initial Version and Version 1 of Ticket #34363, comment 4


Ignore:
Timestamp:
Feb 22, 2023, 6:05:53 AM (21 months ago)
Author:
Takis Issaris

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34363, comment 4

    initial v1  
    2020    # adding 1 for possible rounding up e.g. (99.99, 1) -> 100.0 needs 4 digits
    2121    prec = abs(p) + before_comma + 1
    22     return max(1, prec)
     22    return max(1, prec)   # 1 is the minimum precision for Decimal.quantize()
    2323}}}
Back to Top