Skip to content

Conversation

@gunthercox
Copy link
Owner

@gunthercox gunthercox commented Oct 11, 2025

This fixes decimal tokenization for cases such as -0.01 where the token evaluation becomes ['-0', '.', '01']. The -0 was being parsed as integer 0 and the leading 01 was being dropped.

To fix this, tokens can be kept in string form in the postfix stack and converted to numbers when evaluating it.

@gunthercox gunthercox merged commit 993e4fe into master Oct 12, 2025
5 checks passed
@gunthercox gunthercox deleted the fix branch October 12, 2025 08:33
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.

2 participants