-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Param::Set: fix truncation of floating-point values #1137
Conversation
Signed-off-by: Steve Peters <[email protected]>
Prevent truncation of floating point digits in Param::Set and Param::GetDefault. Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[email protected]>
Codecov Report
@@ Coverage Diff @@
## sdf13 #1137 +/- ##
=======================================
Coverage 87.00% 87.00%
=======================================
Files 125 125
Lines 15834 15834
=======================================
Hits 13777 13777
Misses 2057 2057
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'll formally approve after the garden release so this doesn't accidentally get merged
Signed-off-by: Ian Chen <[email protected]>
60d0070
to
5c9edf8
Compare
just amended and signed off the last commit |
@jennuine we have a stable release of sdformat13, so I think we can start merging for 13.1 |
🦟 Bug fix
Fixes #1136, #103
Summary
As noted in #1136, the
Param::Set
API currently truncates floating point values, demonstrated by the failing test added in f45d371. In 1107f21, theParamStreamer
helper is used inParam::Set
with maximum digits to prevent truncation. The expected values in a test are adjusted in 9ef6cd7 to expect more precision.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.