Browse documentation

formatMoney

Formats a Money or numeric value with the requested currency and locale options.

Table of contents

Category

Value

Import

js
import { formatMoney } from "valyrian.js/money";

Public signature

ts
(value: Money | number, options?: MoneyFormatOptions): string

Parameters

ts
value: Money | number, options?: MoneyFormatOptions

Result

ts
string