Expand description
javascript number formatting (Number.prototype.toString()), used wherever the typescript code converts a number
to a string ("" + n, template literals).
Functionsยง
- js_
number_ to_ string String(n): shortest round-trip representation, javascript exponent rules- js_
parse_ number Number(str)/ unary+strfor css numeric strings- js_
round Math.round(): half up (towards +inf),-0for the values in [-0.5, 0)- js_
to_ precision +value.toPrecision(precision): the exact decimal value rounded half up toprecisionsignificant digits, parsed- num_
to_ str String(n)for an integer or a float- to_
fixed n.toFixed(digits)