function numberToGlsl(v) {
  const s = v.toString();
  return s.includes('.') ? s : s + '.0';
}
Will return the number as a float with a dot separator, which is required by GLSL.
@param {number} v Numerical value.
@return {string} The value as string.