diff --git a/.travis.yml b/.travis.yml index 8c10381..b29790e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: php +dist: trusty php: - 5.4 @@ -7,6 +8,7 @@ php: - 7.0 - 7.1 - 7.2 + - 7.4 before_script: - composer install --prefer-source diff --git a/src/ByteUnits/PowerScale.php b/src/ByteUnits/PowerScale.php index 3240709..8063d70 100644 --- a/src/ByteUnits/PowerScale.php +++ b/src/ByteUnits/PowerScale.php @@ -30,7 +30,7 @@ public function scaleFromUnit($quantity, $unit) return $quantity * bcpow( $this->base, $this->scale[$unit], - $this->precision + 0 ); }