Skip to content

fix: Fix decimal formatting issues. - #14

Merged
dunglas merged 2 commits into
dunglas:mainfrom
leelynne:decimal-fix
Aug 14, 2026
Merged

fix: Fix decimal formatting issues.#14
dunglas merged 2 commits into
dunglas:mainfrom
leelynne:decimal-fix

Conversation

@leelynne

@leelynne leelynne commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

fix: decimal formatting issues and test. The 'frac' component won't always be zero due to floating point but strconv.FormatFloat will round to 3 places and can output a whole number. Checking for a decimal at the end is more reliable to detect the rounding.

TestMarshalDecimal was failing on my machine. It passes with this fix. Thanks for maintaining this codebase! Let me know if I missed a contribution guideline.

…ways be zero due to floating point but strconv.FormatFloat will round to 3 places and can output a whole number. Checking for a decimal at the end is more reliable to detect the rounding
@leelynne leelynne changed the title fix: decimal formatting issues. fix: Fix decimal formatting issues. Mar 17, 2026
@dunglas
dunglas merged commit 888fe5c into dunglas:main Aug 14, 2026
3 checks passed
@dunglas

dunglas commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Good catch, and thanks for the fix! Sorry for the delay.

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