diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/NextAfter.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/NextAfter.php b/src/NextAfter.php index d985e6f..8bd6adc 100644 --- a/src/NextAfter.php +++ b/src/NextAfter.php @@ -84,9 +84,7 @@ final class NextAfter return self::minValue(); } $u = self::floatToInt($x); - return $x > 0.0 ? self::intToFloat($u + 1) : - self::intToFloat($u - 1); - + return $x > 0.0 ? self::intToFloat($u + 1) : self::intToFloat($u - 1); } /** @@ -120,9 +118,7 @@ final class NextAfter return -self::minValue(); } $u = self::floatToInt($x); - return $x > 0.0 ? self::intToFloat($u - 1) : - self::intToFloat($u + 1); - + return $x > 0.0 ? self::intToFloat($u - 1) : self::intToFloat($u + 1); } /** |
