Skip to content

Interpolate with t=Infinity returns NaN instead of Infinity #91

@severo

Description

@severo
d3.interpolateNumber(0,1)(Infinity)

returns NaN, while I would expect it to return Infinity.

Note that replacing

return a * (1 - t) + b * t;

with

    return (b - a) *  t + a;

would generate a new NaN issue that is not a problem with the current version:

d3.interpolateNumber(Infinity, Infinity)(0.5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions