mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 13:22:24 +02:00
1eb5b9d3c5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
34 lines
536 B
Markdown
34 lines
536 B
Markdown
# Factor
|
|
|
|
- `Factor(int $dividend)`
|
|
|
|
Validates if the input is a factor of the defined dividend.
|
|
|
|
```php
|
|
v::factor(0)->validate(5); // true
|
|
v::factor(4)->validate(2); // true
|
|
v::factor(4)->validate(3); // false
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Math
|
|
- Numbers
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
1.0.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Decimal](Decimal.md)
|
|
- [Digit](Digit.md)
|
|
- [Finite](Finite.md)
|
|
- [Infinite](Infinite.md)
|
|
- [NumericVal](NumericVal.md)
|
|
- [PerfectSquare](PerfectSquare.md)
|
|
- [PrimeNumber](PrimeNumber.md)
|