client/webserver/site/src/js/doc.js
// formatCoinValue formats the asset value to a string.
formatCoinValue formats the asset value to a string.
formatCoinValue formats the asset value to a string .
static formatCoinValue (x) {
    var [whole, frac] = x.toLocaleString('en-us', fullPrecisionSpecs).split('.')
    if (!frac) return whole
    frac = frac.substring(0, 8)
    if (frac === '00000000') return whole
    return `${whole}.${frac.replace(/,+$/, '')}`
  }
static formatCoinValue ( x ) { var [ whole , frac ] = x . toLocaleString ( 'en-us' , fullPrecisionSpecs ) . split ( '.' ) if ( ! frac ) return whole frac = frac . substring ( 0 , 8 ) if ( frac === '00000000' ) return whole return ` ${ whole } ${ frac . replace ( / ,+$ / , '' ) } ` }
formatCoinValue formats the asset value to a string.
formatCoinValue formats the asset value to a string .
// toLocalString gives precedence to minimumSignificantDigits, so the result // can have no fractional part, despite the minimumFractionDigits setting. // ... or it can have more than 8 fractional digits, despite of the // maximumFractionDigits setting. // Trim trailing zeros.