sonic-weave
    Preparing search index...

    Function numberToDecimalLiteral

    • Convert a floating point number or a Fraction instance to a decimal literal.

      Parameters

      • num: number | Fraction

        Number to convert. Fractions should have a power of ten denominator unless flavor is 'r'.

      • flavor: NumericFlavor

        Numeric flavor of the literal.

      Returns DecimalLiteral

      Virtual AST node representing a decimal literal.