Ejemplo n.º 1
0
 public function testCannotRoundNanNumbers()
 {
     $x = new \MyOddWeb\BigNumber(1);
     $x->Div(0);
     $this->assertTrue($x->IsNan());
     $x->Round(10);
     $this->assertTrue($x->IsNan());
     $z = $x->ToString();
     $this->assertSame("NaN", $z);
 }