python-drafthorse icon indicating copy to clipboard operation
python-drafthorse copied to clipboard

fix string handling of DecimalElement

Open heeplr opened this issue 2 months ago • 0 comments

This fixes two aspects:

  1. ensure that __str__() always returns a string (this closes #94)
  2. provide a __float__() method so python string formatting doesn't fail with TypeError: must be real number, not DecimalElement

heeplr avatar Nov 05 '25 10:11 heeplr