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

Implement more formatting traits #259

Closed
clarfonthey opened this issue Feb 3, 2017 · 3 comments
Closed

Implement more formatting traits #259

clarfonthey opened this issue Feb 3, 2017 · 3 comments

Comments

@clarfonthey
Copy link

It'd be nice if every struct implemented LowerExp, UpperExp, Binary, Octal, LowerHex, and UpperHex.

These would make it a lot nicer to print things like BigInt and Ratio, which currently only have Debug and Display.

@clarfonthey
Copy link
Author

See also: rust-lang/rust#39479.

@cuviper
Copy link
Member

cuviper commented Dec 19, 2017

num-complex now has all of these.

num-bigint has all but LowerExp and UpperExp, which could actually be interesting for large numbers, especially if we can figure out how to do that quickly, without full digit-by-digit division.

num-rational still needs them all.

@cuviper
Copy link
Member

cuviper commented Dec 19, 2017

Closing in favor of separate issues, rust-num/num-bigint#6 and rust-num/num-rational#1.

@cuviper cuviper closed this as completed Dec 19, 2017
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

No branches or pull requests

2 participants