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

leading zeros?? #300

Closed
sdwarwick opened this issue Oct 20, 2015 · 15 comments
Closed

leading zeros?? #300

sdwarwick opened this issue Oct 20, 2015 · 15 comments
Labels
Milestone

Comments

@sdwarwick
Copy link

Hi - Is there any way to have this package format for leading zeros?

numeral( 1 ).format('zzzz') => "0001"

@morficus
Copy link

morficus commented Nov 7, 2015

+1

6 similar comments
@hhamilto
Copy link

+1

@hunt
Copy link

hunt commented Feb 5, 2016

+1

@cartas510
Copy link

+1

@metalik
Copy link

metalik commented Jul 12, 2016

+1

@g-holmes
Copy link

+1

@datenstau
Copy link

+1

@donpedro
Copy link

This is done on numbro fork (numbrojs.com):

numbro(300).format("00000") // "00300"

@adamwdraper adamwdraper added this to the 1.6.0 milestone Nov 23, 2016
@adamwdraper adamwdraper modified the milestones: 2.1.0, 2.0.0 Dec 4, 2016
@joelpresence
Copy link

Could we merge this into master please? :-) Not having this a show stopper for my use case ... I just want sprintf. 😜

@joelpresence
Copy link

And I'm willing to help with that, if you need me to ... I'm not just trying to whine.

@Eric24
Copy link

Eric24 commented Feb 7, 2017

+1

PS - I vote for the syntax of numeral(300).format('00000) => "00300". It seems more consistent with the current numeral.js design.

@erichsu
Copy link

erichsu commented Feb 22, 2017

+1

2 similar comments
@vivekkhandelwal
Copy link

+1

@TheFabio
Copy link

+1

@adamwdraper
Copy link
Owner

Will be added in 2.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests