$defaultVisitor->arithmetic()
Processes arithmetic operation
$defaultVisitor->arithmetic() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$defaultVisitor->arithmetic(int|float $left, string $operator, int|float $right): mixed
Parameters
| Name | Type | Default |
|---|---|---|
| $leftrequired | intorfloat |
no default value |
| $operatorrequired | string |
no default value |
| $rightrequired | intorfloat |
no default value |
Return type
mixed
This method modifies the existing $defaultvisitor object it is applied to and returns it again.