Skip to content
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

py: Implement mp_format_float for doubles and use where appropriate #1266

Closed
wants to merge 1 commit into from

Conversation

stinos
Copy link
Contributor

@stinos stinos commented May 17, 2015

This allows using (almost) the same code for printing floats everywhere,
removes the dependency on sprintf and uses just snprintf and
applies an msvc-specific fix for snprintf in a single place so
nan/inf are now printed correctly.

This allows using (almost) the same code for printing floats everywhere,
removes the dependency on sprintf and uses just snprintf and
applies an msvc-specific fix for snprintf in a single place so
nan/inf are now printed correctly.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 93.82% when pulling 0b499d7 on stinos:format-double into d7b7d5f on micropython:master.

@dpgeorge
Copy link
Member

Very nice, thank you!

Merged in 861670b.

@dpgeorge dpgeorge closed this May 17, 2015
@stinos stinos deleted the format-double branch May 18, 2015 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants