Skip to main content
Latest
class FluentNumber
extends FluentType<number>
import { FluentNumber } from "https://deno.land/x/fluent@0.0.1/bundle/mod.ts";

A FluentType representing a number.

A FluentNumber instance stores the number value of the number it represents. It may also store an option bag of options which will be passed to Intl.NumerFormat when the FluentNumber is formatted to a string.

Constructors

new
FluentNumber(value: number, opts?: Intl.NumberFormatOptions)

Create an instance of FluentNumber with options to the Intl.NumberFormat constructor.

Properties

opts: Intl.NumberFormatOptions

Options passed to Intl.NumberFormat.

Methods

toString(scope: Scope): string

Format this FluentNumber to a string.