View as Markdown

API reference: @salmonui/core/format

ParseNumberOptionsinterface

import type { ParseNumberOptions } from '@salmonui/core/format';
interface ParseNumberOptions {
    readonly locale?: string | undefined;
    readonly formatOptions?: Intl.NumberFormatOptions | undefined;
}
ParseNumberOptions members (2)
NameSignatureDescription
localeoptionalreadonly locale?: string | undefined;

BCP 47 locale. Default en-US.

formatOptionsoptionalreadonly formatOptions?: Intl.NumberFormatOptions | undefined;

The options the text was formatted with (percent formats divide by 100).