const formatNumber: ( x: number, precision?: number, ) => string
packages / 2d-plot / src / util / format.ts