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

Add format_hexf functions #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

youknowone
Copy link
Collaborator

@youknowone youknowone commented May 16, 2019

I don't have a good idea for inf and nan. They generate errors for now.

using wrapper:

use hexf;

let s = format!("{:x}", hexf::Format(1.0f64));

using format function:

use hexf

let s = hexf::format(1.0f32)

@sanxiyn
Copy link
Collaborator

sanxiyn commented May 22, 2019

This does not build because there is no FormatHexfError.

@youknowone youknowone force-pushed the format branch 3 times, most recently from 9001603 to e5b7669 Compare May 22, 2019 05:36
@youknowone
Copy link
Collaborator Author

Fixed it, but still failing for Rust 1.15

@youknowone
Copy link
Collaborator Author

Will anyone confirm this is a mergable approach or not?

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.

2 participants