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
would generate a new NaN issue that is not a problem with the current version:
d3.interpolateNumber(Infinity, Infinity)(0.5)
returns
NaN, while I would expect it to returnInfinity.Note that replacing
d3-interpolate/src/number.js
Line 3 in e8cddfd
with
would generate a new
NaNissue that is not a problem with the current version: