diff options
author | Bruce Wells <phpfui@users.noreply.github.com> | 2018-10-31 16:51:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 16:51:19 +0300 |
commit | 07d02e1fb0aeb9fca7174a065f61a5fa2643b12f (patch) | |
tree | 86f215d0c7187843e863e7a980ae81943e7d4a5f /src/NXP/MathExecutor.php | |
parent | 43f0ff3f28d198fbb4e36346fc5f36fa91cf3e18 (diff) | |
parent | f0d4562b9ef3bbc64cb8353f0597e639420ede6b (diff) |
Merge branch 'master' into master
Diffstat (limited to 'src/NXP/MathExecutor.php')
-rw-r--r-- | src/NXP/MathExecutor.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/NXP/MathExecutor.php b/src/NXP/MathExecutor.php index d62d07a..fbf6ab1 100644 --- a/src/NXP/MathExecutor.php +++ b/src/NXP/MathExecutor.php @@ -219,6 +219,29 @@ class MathExecutor } /** + * Set division by zero exception reporting + * + * @param bool $exception default true + * + * @return MathExecutor + */ + public function setDivisionByZeroException($exception = true) + { + $this->tokenFactory->setDivisionByZeroException($exception); + return $this; + } + + /** + * Get division by zero exception status + * + * @return bool + */ + public function getDivisionByZeroException() + { + return $this->tokenFactory->getDivisionByZeroException(); + } + + /** * Execute expression * * @param $expression |