function encodeFloats(numbers, factor) {
  factor = factor ? factor : 1e5;
  for (let i = 0, ii = numbers.length; i < ii; ++i) {
    numbers[i] = Math.round(numbers[i] * factor);
  }

  return encodeSignedIntegers(numbers);
}
Encode a list of floating point numbers and return an encoded string

Attention: This function will modify the passed array!

@param {Array<number>} numbers A list of floating point numbers.
@param {number} [factor] The factor by which the numbers will be
    multiplied. The remaining decimal places will get rounded away.
    Default is `1e5`.
@return {string} The encoded string.
@api