Beispiel #1
0
 /**
  * Run the command
  *
  * @return Number
  */
 public function run()
 {
     return new AnyNumber(bcpow($this->left->value(), $this->right->value(), $this->scale->value()));
 }
 /** @test */
 public function should_create_number()
 {
     $number = new PositiveNumber(1);
     $this->assertEquals(1, $number->value());
     $this->assertInstanceOf('PhilipBrown\\Math\\PositiveNumber', $number);
 }