Skip to content

Commit

Permalink
Update FORMATNUMBER.js
Browse files Browse the repository at this point in the history
Fixed issues with B suffix, part deux
  • Loading branch information
rahulgoel97 authored Aug 31, 2020
1 parent b6e3acd commit b0eaeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FORMATNUMBER.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function FORMATNUMBER(input, round, fig) {
if(input_val >=1000000000)
{

mag = (input/100000000).toFixed(round).replace(/\B(?=(\d{3})+(?!\d))/g, ",")
mag = (input/1000000000).toFixed(round).replace(/\B(?=(\d{3})+(?!\d))/g, ",")
textnum = mag.toString() + "B"

}
Expand Down

0 comments on commit b0eaeb2

Please sign in to comment.