function writeDecimalTextNode(node, decimal) {
  const string = decimal.toPrecision();
  node.appendChild(getDocument().createTextNode(string));
}
@param {Node} node Node to append a TextNode with the decimal to.
@param {number} decimal Decimal.