jquery-glob icon indicating copy to clipboard operation
jquery-glob copied to clipboard

$.format(Infinity, 'n0', 'nl-NL') yields "In.fin.ity"

Open hidde-jan opened this issue 13 years ago • 0 comments

$.format formats Infinity in a very peculiar way. I haven't checked it in other cultures, but I suspect $.format(Infinity, 'n0', 'en-GB') would yield "In.fin.ity".

Although I don't think a lot of people will have to deal with values as Inifinity or -Inifinity (which also yields "In.fin.ity"), this is still a bug.

More erroneous behavior: > $.format(-Infinity, 'n2') "In.fin.ity,00"

hidde-jan avatar Mar 05 '11 10:03 hidde-jan