code: function(numbers, opt_factor) {
        var factor = opt_factor || 1e5;
  
        var numbersLength = numbers.length;
        for (var i = 0; i < numbersLength; ++i) {
          numbers[i] = Math.round(numbers[i] * factor);
        }
  
        return this.encodeSignedIntegers(numbers);
      }
docs: APIMethod: encodeFloats
  Encode a list of floating point numbers and return an encoded string
  
  Attention: This function will modify the passed array!
  
  Parameters:
  numbers - {Array.<number>} A list of floating point numbers.
  opt_factor - {number=} The factor by which the numbers will be
  multiplied. The remaining decimal places will get rounded away.
  
  Returns:
  {string} The encoded string.