function _carry (amount) {
    const fractionSize = Math.pow(10, 9);
    amount.nanos += (amount.units % 1) * fractionSize;
    amount.units = Math.floor(amount.units) + Math.floor(amount.nanos / fractionSize);
    amount.nanos = amount.nanos % fractionSize;
    return amount;
  }
/**
   * Helper function that handles decimal/fractional carrying
   */
Helper function that handles decimal/fractional carrying
Helper function that handles decimal / fractional carrying
function _carry (amount) {
    const fractionSize = Math.pow(10, 9);
    amount.nanos += (amount.units % 1) * fractionSize;
    amount.units = Math.floor(amount.units) + Math.floor(amount.nanos / fractionSize);
    amount.nanos = amount.nanos % fractionSize;
    return amount;
  }
function _carry ( amount ) { const fractionSize = Math . pow ( 10 , 9 ) ; amount . nanos += ( amount . units % 1 ) * fractionSize ; amount . units = Math . floor ( amount . units ) + Math . floor ( amount . nanos / fractionSize ) ; amount . nanos = amount . nanos % fractionSize ; return amount ; }
Helper function that handles decimal/fractional carrying
Helper function that handles decimal / fractional carrying