コード例 #1
0
 /**
  * Run the command
  *
  * @return Number
  */
 public function run()
 {
     return new AnyNumber(bcsqrt($this->operand->value(), $this->scale->value()));
 }
コード例 #2
0
ファイル: PowerCommand.php プロジェクト: philipbrown/math
 /**
  * Run the command
  *
  * @return Number
  */
 public function run()
 {
     return new AnyNumber(bcpow($this->left->value(), $this->right->value(), $this->scale->value()));
 }
コード例 #3
0
ファイル: ModulusCommand.php プロジェクト: philipbrown/math
 /**
  * Run the command
  *
  * @return Number
  */
 public function run()
 {
     return new AnyNumber(bcmod($this->operand->value(), $this->modulus->value()));
 }