isPositive returns true for zero

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Closed

@imirkin

Description

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.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions