Skip to content

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