From f7b44304908d097019327db0e1499435a4e4b14c Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Wed, 27 Apr 2011 12:26:48 +0000 Subject: [PATCH] Replaced "Math" with "FastMath". git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097094 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math/util/MathUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/util/MathUtils.java b/src/main/java/org/apache/commons/math/util/MathUtils.java index a488c6191..cbb7b5bb6 100644 --- a/src/main/java/org/apache/commons/math/util/MathUtils.java +++ b/src/main/java/org/apache/commons/math/util/MathUtils.java @@ -1293,8 +1293,8 @@ public final class MathUtils { public static double reduce(double a, double period, double offset) { - final double p = Math.abs(period); - return a - p * Math.floor((a - offset) / p) - offset; + final double p = FastMath.abs(period); + return a - p * FastMath.floor((a - offset) / p) - offset; } /**