/** * 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(); }
/** * @dataProvider constructProvider */ public function testConstruct($number, $scale, $output) { $num = new fNumber($number, $scale); $this->assertSame($output, $num->__toString()); }