Skip to content

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