Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new FluentNumber(value: number, opts?: NumberFormatOptions): FluentNumber
  • Create an instance of FluentNumber with options to the Intl.NumberFormat constructor.

    Parameters

    • value: number

      The number value of this FluentNumber.

    • opts: NumberFormatOptions = ...

      Options which will be passed to Intl.NumberFormat.

    Returns FluentNumber

Properties

opts

opts: NumberFormatOptions

Options passed to Intl.NumberFormat.

value

value: number

The wrapped native value.

Methods

toString

  • toString(scope: Scope): string

valueOf

  • valueOf(): number