Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Zero isn't a positive integer.


sort by: page size:

Negative zero doesn't exist for integers either.

0 is not a positive number.

Zero is positive and negative

0 is a nonnegative number.

How Is 0 not positive?

Not necessarily. Any positive integer is greater than zero.

Doesn't negative imply nonzero? :)

Zero is a digit.

Since definition of zero is x - x, negative zero is utter bullshit.

Zero is neither positive nor negative

Though, that has 2 zeros, a positive and a negative one, but zero should be neither. To avoid that, you can do:

  data Int = Zero | NonZero Sign PositiveInt
  data PositiveInt = One | Succ PositiveInt
  data Sign = Positive | Negative

Zero is an integer. The point is the right side is not. Since it's strictly greater than zero and less than 1.

Isn't N just the positive integers and W the one with zero?

If you count zero as a positive number then one solution is:

0, 109552575, 29354524 :)


0 perhaps.

1 doesn't mean much regarding true, if every other non-zero integer is also true.


That zero is a real number.

In IEEE floating point numbers there is a positive zero and a negative zero. In mathematics there is no negative zero. https://en.wikipedia.org/wiki/0_(number)#Mathematics

Is zero a number?

Another question is whether you'd want to include negative zero as a positive integer.
next

Legal | privacy