extensions/pdfViewer/pdf/build/pdf.js
function pf(value) {
    if (value === (value | 0)) { // integer number
      return value.toString();
    }
    var s = value.toFixed(10);
    var i = s.length - 1;
    if (s[i] !== '0') {
      return s;
    }
    // removing trailing zeros
    do {
      i--;
    } while (s[i] === '0');
    return s.substr(0, s[i] === '.' ? i : i + 1);
  }
function pf(value) {
    if (value === (value | 0)) { // integer number
      return value.toString();
    }
    var s = value.toFixed(10);
    var i = s.length - 1;
    if (s[i] !== '0') {
      return s;
    }
    // removing trailing zeros
    do {
      i--;
    } while (s[i] === '0');
    return s.substr(0, s[i] === '.' ? i : i + 1);
  }
function pf ( value ) { if ( value === ( value | 0 ) ) { // integer number return value . toString ( ) ; } var s = value . toFixed ( 10 ) ; var i = s . length - 1 ; if ( s [ i ] !== '0' ) { return s ; } // removing trailing zeros do { i -- ; } while ( s [ i ] === '0' ) ; return s . substr ( 0 , s [ i ] === '.' ? i : i + 1 ) ; }
Formats float number.
@param value {number} number to format.
@returns {string}
Formats float number .