formatTipNumber

A number as the data has it, for a tooltip's value: to six significant figures, which is every figure an author writes and none of the float noise (0.30000000000000004) arithmetic leaves behind, with a true minus.

@internote/canvas-sdk/reactFunction
On this page
import { formatTipNumber } from '@internote/canvas-sdk/react';

#Signature

(value: number, significant?: number): string

#Parameters

value
The number.
significant
How many significant figures at most.

Declared in packages/canvas-sdk/src/react/surface-tooltip.tsx:191.

Last updated