Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jquery.number.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@
*/
$.number = function( number, decimals, dec_point, thousands_sep ){
// Set the default values here, instead so we can use them in the replace below.
thousands_sep = (typeof thousands_sep === 'undefined') ? ( new Number(1000).toLocaleString() !== '1000' ? new Number(1000).toLocaleString().charAt(1) : '' ) : thousands_sep;
thousands_sep = (typeof thousands_sep === 'undefined') ? ( new Number(1000).toLocaleString() !== '1000' ? new Number(1000).toLocaleString().charAt(1) : ',' ) : thousands_sep;
dec_point = (typeof dec_point === 'undefined') ? new Number(0.1).toLocaleString().charAt(1) : dec_point;
decimals = !isFinite(+decimals) ? 0 : Math.abs(decimals);

Expand Down