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

Formatting #14

Open
mickeyvip opened this issue May 8, 2013 · 1 comment
Open

Formatting #14

mickeyvip opened this issue May 8, 2013 · 1 comment

Comments

@mickeyvip
Copy link

It would be great if BigInteger had formatting function.
For example, using D3's formatting:

var myBigInt = BigInteger("1234567890");
console.log(myBigInt.format(",.02f"));   // "1,234,567,890.00"
console.log(myBigInt.toString(",.02f")); // "1,234,567,890.00"

Thank you

@silentmatt
Copy link
Owner

That's a really good idea. I'll add that to my to-do list. Thanks for the
idea!

Sorry it took me so long to respond to this, I'm a little behind on my
emails.

Matthew

On Wed, May 8, 2013 at 6:22 AM, Mickey notifications@github.com wrote:

It would be great if BigInteger had formatting function.
For example, using D3's formatting:

var myBigInt = BigInteger("1234567890");console.log(myBigInt.format(",.02f")); // "1,234,567,890.00"console.log(myBigInt.toString(",.02f")); // "1,234,567,890.00"

Thank you


Reply to this email directly or view it on GitHubhttps://github.com//issues/14
.

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