deep.js
// This helper function converts a number into English notation. 1,000 = k, 1,000,000 = m, 1,000,000,000 = b (rare)

This helper function converts a number into English notation.
This helper function converts a number into English notation .
function ntoe(n)
{
	if (n > 999999999.999999999)
	{
		return (n / 1000000000.0).toFixed(1) + " b";
	}
	else if (n > 999999.999999999)
	{
		return (n / 1000000.0).toFixed(1) + " m";
	}
	else if (n > 999.999999999)
	{
		return (n / 1000.0).toFixed(1) + " k";
	}
	else
	{
		return n;
	}
}
function ntoe ( n ) { if ( n > 999999999.999999999 ) { return ( n / 1000000000.0 ) . toFixed ( 1 ) + " b" ; } else if ( n > 999999.999999999 ) { return ( n / 1000000.0 ) . toFixed ( 1 ) + " m" ; } else if ( n > 999.999999999 ) { return ( n / 1000.0 ) . toFixed ( 1 ) + " k" ; } else { return n ; } }
This helper function converts a number into English notation.
This helper function converts a number into English notation .