Skip to content

Conversation

@heeplr
Copy link

@heeplr heeplr commented Nov 5, 2025

This fixes two aspects:

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

@heeplr heeplr changed the title ensure __str__() always returns a string fix string handling of DecimalElement Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DecimalElement.__str__() doesn't always return string type

1 participant