Skip to content

feature: improved PrimitiveEncoder numerical handling#20

Merged
felipestanzani merged 3 commits intotoon-format:mainfrom
Invokedzz:main
Nov 9, 2025
Merged

feature: improved PrimitiveEncoder numerical handling#20
felipestanzani merged 3 commits intotoon-format:mainfrom
Invokedzz:main

Conversation

@Invokedzz
Copy link
Contributor

  • Created "encodeNumber" method in order to encode JsonNode to decimal format;
  • Created "stripTrailingZeros" method so every zero gets preserved after decimal point;
  • Added more test cases related to special numeric values so every situation gets properly covered.

@felipestanzani felipestanzani merged commit 66fbe93 into toon-format:main Nov 9, 2025
1 check passed
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