fktn-k / fkYAML

A C++ header-only YAML library
MIT License
67 stars 7 forks source link

Fix float scalar serialization when a float is actually an integer #407

Closed fktn-k closed 1 week ago

fktn-k commented 1 week ago

This PR fixes #405 by appending ".0" during float scalar serialization when a float is actually an integer. Without the appending, the serialization result would be interpreted as an integer scalar on using it as the input of deserialization.


Pull Request Checklist

Read the CONTRIBUTING.md file for detailed information.

Please don't

github-actions[bot] commented 1 week ago

:octocat: Upload Coverage Event Notification

Coverage data has been uploaded for the commit d722ff4bfe85e9e1d3c07c7d2e4c89338bbae650. You can download the artifact which contains the same file uploaded to the Coveralls and its HTML version.

Name fkYAML_coverage.pr407.zip
ID 2018243347
URL https://github.com/fktn-k/fkYAML/actions/runs/11188991703/artifacts/2018243347