Skip to content

fix: keep decimal fractions when serializing numbers without arbitrary precision - #530

Merged
stefan-gorules merged 1 commit into
masterfrom
fix/decimal-serialization
Sep 29, 2026
Merged

stefan-gorules merged 1 commit into
masterfrom
fix/decimal-serialization

Conversation

@stefan-gorules

Copy link
Copy Markdown
Contributor

Without the arbitrary_precision feature, numbers were serialized through to_u64/to_i64 first, which truncate, so 1.5 became 1 and 0.1 became 0. Only integral values take the integer path now; the serialization for Variable and RcValue shares one implementation.

…y precision

Without the arbitrary_precision feature, numbers were serialized through
to_u64/to_i64 first, which truncate, so 1.5 became 1 and 0.1 became 0.
Only integral values take the integer path now; the serialization for
Variable and RcValue shares one implementation.
@stefan-gorules
stefan-gorules merged commit 41e3f8c into master Sep 29, 2026
59 checks passed
@stefan-gorules
stefan-gorules deleted the fix/decimal-serialization branch September 29, 2026 08:24
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