dcodeIO / long.js

A Long class for representing a 64-bit two's-complement integer value.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isPositive returns true for zero

imirkin opened this issue · comments

Long.ZERO.isPositive() returns true. This is not the usual meaning of "is positive". Perhaps update the documentation to indicate non-negative? (Since it's probably not feasible to change the API to return false for zero.)