respect-validation/docs/rules/Negative.md

27 lines
346 B
Markdown
Raw Permalink Normal View History

2015-01-30 09:40:06 +01:00
# Negative
- `Negative()`
2015-01-30 09:40:06 +01:00
Validates whether the input is a negative number.
2015-01-30 09:40:06 +01:00
```php
2016-11-06 18:45:44 +01:00
v::numericVal()->negative()->validate(-15); // true
2015-01-30 09:40:06 +01:00
```
## Categorization
- Math
- Numbers
## Changelog
Version | Description
--------|-------------
2.0.0 | Does not validate non-numeric values
0.3.9 | Created
***
2015-01-30 09:40:06 +01:00
See also:
- [Positive](Positive.md)