跳转到内容

toFixed

toFixed(number, fractionDigits): number

Parameters

number: string | number

number to operate on

fractionDigits: number

number of fraction digits to “leave”

Returns

number

Defined in

src/util/misc/toFixed.ts:7