A function that works like javascript’s toPrecision.
toPrecision
Internally it rounds and then uses the built-in algorithm, so it will give different results to toPrecision. They may converge over time.