Skip to main content

@morph-l2/sdkDocs


@morph-l2/sdk / toNumber

Function: toNumber()

toNumber(num): number

Converts a number-like into a number.

Parameters

num: NumberLike

Number-like to convert into a number.

Returns

number

Number-like as a number.

Source

src/utils/coercion.ts:94