• Beta

    This implements the rounding procedure described in step 2 of the "Serializing a Decimal" specification. This rounding style is known as "even rounding", "banker's rounding", or "commercial rounding".

    Parameters

    • value: number

      The value to round

    • precision: number

      The number of decimal places to round to

    Returns number

    The rounded value