Skip to content

Add padding for Number.format #1151

Open
hydrian opened this Issue Sep 7, 2012 · 0 comments

1 participant

@hydrian
hydrian commented Sep 7, 2012

It would be real nice if there was a way to add zero padding support to number via Number.format. This would be handy if you could do both integer and decimal padding. Example

Code
var MyNumber = Number(50.3).format({
padding:5,
decimalPadding:3
});

Output
MyNumber = "00050.300";

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.