Function fsum

  • Returns a full precision summation of the given values. Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder.

    Parameters

    Returns number

  • Returns a full precision summation of the given values. Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder.

    Type Parameters

    • T

    Parameters

    • values: Iterable<T>
    • accessor: ((datum, index, array) => number)
        • (datum, index, array): number
        • Parameters

          • datum: T
          • index: number
          • array: Iterable<T>

          Returns number

    Returns number