IntegerMathTrait
- namespace
- Samsara\Fermat\Types\Traits
- satisfies
- DecimalInterface (partially)
The IntegerMathTrait
provides the implementations of all integer math methods for any class which implements the DecimalInterface
. This includes methods such as factorial()
and isPrime()
.