[PR #33] [MERGED] Fix roundtrip/serialization of real with > 5 digits #57

Open
opened 2026-01-30 21:26:57 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/claunia/plist-cil/pull/33
Author: @qmfrederik
Created: 5/22/2018
Status: Merged
Merged: 5/22/2018
Merged by: @claunia

Base: masterHead: fixes/real-roundtrip


📝 Commits (3)

  • 15d53ad Test parsing and serialization of real numbers with > 5 decimals
  • 250377b Use "R" instead of "G17"
  • 4cfa99e Fix paths

📊 Changes

5 files changed (+29 additions, -2 deletions)

View changed files

📝 plist-cil.test/IssueTest.cs (+10 -0)
📝 plist-cil.test/NSNumberTests.cs (+7 -0)
📝 plist-cil.test/plist-cil.test.csproj (+3 -0)
plist-cil.test/test-files/RoundtripReal.plist (+5 -0)
📝 plist-cil/NSNumber.cs (+4 -2)

📄 Description

Values such as "0.748765" would be truncated to "0.74876", use .ToString("G17") to keep all digits in the string repesentation.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/claunia/plist-cil/pull/33 **Author:** [@qmfrederik](https://github.com/qmfrederik) **Created:** 5/22/2018 **Status:** ✅ Merged **Merged:** 5/22/2018 **Merged by:** [@claunia](https://github.com/claunia) **Base:** `master` ← **Head:** `fixes/real-roundtrip` --- ### 📝 Commits (3) - [`15d53ad`](https://github.com/claunia/plist-cil/commit/15d53adf8e9954f8b9933f102ceee4d4d78937ff) Test parsing and serialization of real numbers with > 5 decimals - [`250377b`](https://github.com/claunia/plist-cil/commit/250377bfdeb8da412aed6da44ebd410fa3330487) Use "R" instead of "G17" - [`4cfa99e`](https://github.com/claunia/plist-cil/commit/4cfa99edb8a54c875976f37a24507a46197631fc) Fix paths ### 📊 Changes **5 files changed** (+29 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `plist-cil.test/IssueTest.cs` (+10 -0) 📝 `plist-cil.test/NSNumberTests.cs` (+7 -0) 📝 `plist-cil.test/plist-cil.test.csproj` (+3 -0) ➕ `plist-cil.test/test-files/RoundtripReal.plist` (+5 -0) 📝 `plist-cil/NSNumber.cs` (+4 -2) </details> ### 📄 Description Values such as "0.748765" would be truncated to "0.74876", use `.ToString("G17")` to keep all digits in the string repesentation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-30 21:26:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: claunia/plist-cil#57