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