Skip to content

Number format? #136

Closed
demian85 opened this Issue Jul 12, 2012 · 2 comments

2 participants

@demian85

Would this be useful? jashkenas/underscore#673

@rwz
Collaborator
rwz commented Jul 13, 2012

Well, probably yes. I just think it should support options as an object.

@demian85

It's only 4 parameters and you'll probably use only 2 of them.
I think it's easier
_.format(5000.389, 2, '.', ',')
than
_.format(5000.389, {
decimals : 2,
decSeparator : '.',
thousandSeparator : ','
})

@rwz rwz closed this Aug 17, 2012
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.