Skip to content

Conversation

R3G3N3R4T0R
Copy link
Contributor

@R3G3N3R4T0R R3G3N3R4T0R commented Sep 9, 2025

After my erroneous patch (04baaf3), the floor(Int, log10(x)) would trigger InexactError if x == 0.0. This PR address that and add an extensive testset to prevent regression. The testset is GPT-5 generated but I have reviewed and edited it manually.

The testset validate current behavior instead of Python's. If in the future "g/G" is set to remove trailing zeros, it has to be edited. A FIXME has been added to remind future maintainers.

g/G currently lacks a testset. This testset is currently non-compilant
to Python's format_spec as trailing zeros are retained. Added FIXME to
remind future maintainers.
@R3G3N3R4T0R R3G3N3R4T0R marked this pull request as ready for review September 9, 2025 03:20
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.

1 participant