fluent.js
    Preparing search index...

    Class FluentNumber

    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 (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • 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: NumberFormatOptions

    Options passed to Intl.NumberFormat.

    value: number

    The wrapped native value.

    Methods