widgets/justgage/lib/js/justgage.js
function humanFriendlyNumber(n, d) {
  var p, d2, i, s;

  p = Math.pow;
  d2 = p(10, d);
  i = 7;
  while (i) {
    s = p(10, i-- * 3);
    if (s <= n) {
      n = Math.round(n * d2 / s) / d2 + "KMGTPE" [i];
    }
  }
  return n;
}
function humanFriendlyNumber(n, d) {
  var p, d2, i, s;

  p = Math.pow;
  d2 = p(10, d);
  i = 7;
  while (i) {
    s = p(10, i-- * 3);
    if (s <= n) {
      n = Math.round(n * d2 / s) / d2 + "KMGTPE" [i];
    }
  }
  return n;
}
function humanFriendlyNumber ( n , d ) { var p , d2 , i , s ; p = Math . pow ; d2 = p ( 10 , d ) ; i = 7 ; while ( i ) { s = p ( 10 , i -- * 3 ) ; if ( s <= n ) { n = Math . round ( n * d2 / s ) / d2 + "KMGTPE" [ i ] ; } } return n ; }
Human friendly number suffix - From: http://stackoverflow.com/questions/2692323/code-golf-friendly-number-abbreviator
Human friendly number suffix - From : http : // stackoverflow . com / questions / 2692323 / code - golf - friendly - number - abbreviator