Countly/countly-server — pull request #91 by PUDRESCU (2014-04-30 21:03:51+00:00)
Title: Dashboard getFormattedNumber method also formats number strings

Use Case: Segmented event on product ids which are 9 digits. dashboard displays the segmentation using formatted numbers: 123,456,789 when we are looking for simply 12345678.

isNaN("1234") evaluates to false even though it's clearly a string (quotes) which results in the value getting formatted to 1,234 in the dashboard.

swapping isNaN out for underscores isNumber achieves the desired result