| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 18 | public function continuousModulo($mod)  | 
            ||
| 19 |     {
 | 
            ||
| 20 | |||
| 21 | $mod = Numbers::makeOrDont(Numbers::IMMUTABLE, $mod, $this->precision+1);  | 
            ||
| 22 | $oldNum = Numbers::make(Numbers::IMMUTABLE, $this->getValue(), $this->precision+1);  | 
            ||
| 23 | |||
| 24 | $multiple = $oldNum->divide($mod)->floor();  | 
            ||
| 25 | |||
| 26 | $remainder = $oldNum->subtract($mod->multiply($multiple));  | 
            ||
| 27 | |||
| 28 | return Numbers::make(Numbers::MUTABLE, $remainder->truncate($this->precision)->getValue());  | 
            ||
| 29 | |||
| 52 | }  |