Skip to content

ATLEDGE-619: fix dtostrf #217

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

Closed
wants to merge 1 commit into from

Conversation

eriknyquist
Copy link
Contributor

Use a different method for float->string conversion, and
fix the width calculation so that extra spaces are only
printed if the width parameter exceeds the output string
length (ie. a mininum width, as specified by dtostrf
reference from avr-libc).

@eriknyquist
Copy link
Contributor Author

eriknyquist commented Jun 17, 2016

@SidLeung @bigdinotech ready for review
Commit message is self explanatory, except for the fact that this change also makes the test values from ATLEDGE-619 print correctly. @calvinatintel could we get a JSON for this before merging so Janet can do some further testing?

@bbaltz505
Copy link
Contributor

@SidLeung
Copy link
Contributor

@eriknyquist Looks good. @bigdinotech Please check it out.

Use a different method for float->string conversion, and
fix the width calculation so that extra spaces are only
printed if the width parameter exceeds the output string
length (ie. a mininum width, as specified by dtostrf
reference from avr-libc).
@eriknyquist
Copy link
Contributor Author

@calvinatintel ready to merge.

@bbaltz505
Copy link
Contributor

cherry-picked

@bbaltz505 bbaltz505 closed this Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants