示例#1
0
 /**
  * Returns the monetary value without a currency symbol or thousand separator (e.g. `2000.12`)
  * 
  * @return string  The monetary value without currency symbol or thousands separator
  */
 public function __toString()
 {
     return $this->amount->__toString();
 }
示例#2
0
 /**
  * @dataProvider constructProvider
  */
 public function testConstruct($number, $scale, $output)
 {
     $num = new fNumber($number, $scale);
     $this->assertSame($output, $num->__toString());
 }