0 is not a positive number
See original GitHub issue.positive()
accepts 0, but shouldn’t 0 not be considered a positive number?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Is zero positive or negative? - Mathematics Stack Exchange
Actually, zero is neither a negative or a positive number. The whole idea of positive and negative is defined in terms of zero....
Read more >Is 0 a positive number or a negative number? - Quora
Zero is neither a positive number nor a negative number. It is the number defined by nothing. But is a number. Boiled down...
Read more >Is zero a positive or negative number (in English) - YouTube
Topic: Is Zero is a positive or negative numberIn this tutorial you will understand whether zero is a positive or negative number.
Read more >Is Zero Positive or Negative? - MathFour
We think of the numbers as either positive or negative. ... But actually, all real numbers can be divided into three categories: positive,...
Read more >Is 0 considered a positive integer : Quantitative - GMAT Club
An even number is one that divides evenly by 2, with no remainder. So yes, 0 is considered an even number. But it's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@iPwnPancakes isn’t
number().min(0)
what you need ?So, zero is not positive, so, yes, this is a bug. The workaround (ugh!) yup.number().moreThan(0)