2015-01-30 09:40:06 +01:00
|
|
|
# Positive
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `Positive()`
|
2015-01-30 09:40:06 +01:00
|
|
|
|
2018-06-05 03:54:48 +02:00
|
|
|
Validates whether the input is a positive number.
|
2015-01-30 09:40:06 +01:00
|
|
|
|
|
|
|
```php
|
2018-06-05 03:54:48 +02:00
|
|
|
v::positive()->validate(1); // true
|
|
|
|
v::positive()->validate(0); // false
|
|
|
|
v::positive()->validate(-15); // false
|
2015-01-30 09:40:06 +01:00
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Math
|
|
|
|
- Numbers
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
2018-06-05 03:54:48 +02:00
|
|
|
2.0.0 | Does not validate non-numeric values
|
2017-03-27 22:04:13 +02:00
|
|
|
0.3.9 | Created
|
|
|
|
|
2015-08-20 06:38:41 +02:00
|
|
|
***
|
2015-01-30 09:40:06 +01:00
|
|
|
See also:
|
|
|
|
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Negative](Negative.md)
|