Hi,
I think wsint64 has a bug with small positive numbers represented in 64bits. When the more significative 32 bits are all zeros vzposwill be false because value[0] * Number.POSITIVE_INFINITY is NaN, causing the number to be considered negative throwing value smaller than minimum allowed value error.
It seems to work fine with all other kinds of signed numbers.
I suggest a PR to fix this and to consider zero a positive number on that function. Do you agree?
Thanks,
Bruno
Hi,
I think wsint64 has a bug with small positive numbers represented in 64bits. When the more significative 32 bits are all zeros
vzposwill be false becausevalue[0] * Number.POSITIVE_INFINITYisNaN, causing the number to be considered negative throwing value smaller than minimum allowed value error.It seems to work fine with all other kinds of signed numbers.
I suggest a PR to fix this and to consider zero a positive number on that function. Do you agree?
Thanks,
Bruno