You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file:///path/to/node_modules/d3-array/src/sum.js:5
if (value = +value) {
^
TypeError: Cannot convert a BigInt value to a number
at Module.sum (file:///path/to/tmp/node_modules/d3-array/src/sum.js:5:19)
at file:///path/to/tmp/xxx.mjs:67:6
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v21.2.0
The text was updated successfully, but these errors were encountered:
In general, no. We’d need a d3.bigsum if we wanted to be accurate with respective to BigInt. You can coerce to Number as @Fil suggested if you don’t actually need an exact answer though.
some like
d3.ascending
d3.descending
have no problems, some are not:The text was updated successfully, but these errors were encountered: