Skip to main content
注意: 此页面尚未翻译成中文。以下内容为英文原版。
Converts value into a decimal string, assuming unit decimal places. The unit may be the number of decimal places or the name of a unit (e.g. "gwei" for 9 decimal places).

Parameters

Returns

string The converted value.

Throws

If the unit is invalid.

Source

utils/units.ts:33