function writeScaleTextNode(node, scale) {
  // the Math is to remove any excess decimals created by float arithmetic
  writeDecimalTextNode(node, Math.round(scale * 1e6) / 1e6);
}
@param {Node} node Node to append a TextNode with the scale to.
@param {number|undefined} scale Scale.