r-quantities / quantities

Quantity Calculus for R Vectors
https://r-quantities.github.io/quantities
Other
26 stars 3 forks source link

Sum return NaN errors #1

Closed eoplus closed 6 years ago

eoplus commented 6 years ago

I'm know the package is not yet released, so a bug report is to premature. But I wanted just to point out in case this is unnoticed:

set_errors(1, 0) + set_errors(0, 0)
# 1(0)
set_quantities(1, 1, 0) + set_quantities(0, 1, 0)
# 1(NaN) 

Thanks for the awesome package =)

Enchufa2 commented 6 years ago

No bug report is too premature! Many thanks!

Enchufa2 commented 6 years ago

The problem is deeper than expected.

Enchufa2 commented 6 years ago

Now it should be fixed.