Public function

Get a number to a precision.

Signature
function toPrecision(n: number, precision?: number): number
Parameters
NameDescription

n

number

The number.

precision

number

The precision.

Returns
number
Source

packages/editor/src/lib/primitives/utils.ts

toFixedUiEvent