shortFloat = (val) => {
  const digits = elementContainer_.getRoundDigits()
  if (!isNaN(val)) {
    return Number(Number(val).toFixed(digits))
  }
  if (Array.isArray(val)) {
    return shortFloat(val[0]) + ',' + shortFloat(val[1])
  }
  return Number.parseFloat(val).toFixed(digits) - 0
}
Rounds a given value to a float with number of digits defined in
`round_digits` of `saveOptions`

@function module:units.shortFloat
@param {string|Float|module:units.CompareNumbers} val - The value (or Array of two numbers) to be rounded
@returns {Float|string} If a string/number was given, returns a Float. If an array, return a string
with comma-separated floats