diff --git a/src/Currency.php b/src/Currency.php index 9ae7b3f..c2db2a4 100644 --- a/src/Currency.php +++ b/src/Currency.php @@ -60,7 +60,7 @@ public function __construct( ) { $this->code = $code ?? $this->code ?? ''; $this->name = $name ?? $this->name ?? ''; - $this->rate = $rate ?? $this->rate ?? 1; + $this->rate = $rate ?? $this->rate ?? 1.0; $this->prefix = $prefix ?? $this->prefix ?? ''; $this->suffix = $suffix ?? $this->suffix ?? ''; $this->mathDecimals = $mathDecimals ?? $this->mathDecimals ?? 2;