Commit 1edc95d9 authored by yanzg's avatar yanzg

升级新版本

parent ce574db1
......@@ -32,7 +32,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double add(Double d1, Double d2) {
public static double addDouble(Double d1, Double d2) {
return add(StringHelper.toDouble(d1), StringHelper.toDouble(d2));
}
......@@ -58,7 +58,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double addList(Double d1, Double... d2) {
public static double addListDouble(Double d1, Double... d2) {
double ret = d1;
for (double item : d2) {
ret = add(ret, item);
......@@ -86,7 +86,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double sub(Double d1, Double d2) {
public static double subDouble(Double d1, Double d2) {
return sub(StringHelper.toDouble(d1), StringHelper.toDouble(d2));
}
......@@ -112,7 +112,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double subList(Double d1, Double... d2) {
public static double subListDouble(Double d1, Double... d2) {
double ret = d1;
for (double item : d2) {
ret = sub(ret, item);
......@@ -140,7 +140,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double mul(Double d1, Double d2) {
public static double mulDouble(Double d1, Double d2) {
return mul(StringHelper.toDouble(d1), StringHelper.toDouble(d2));
}
......@@ -166,7 +166,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double mulList(Double d1, Double... d2) {
public static double mulListDouble(Double d1, Double... d2) {
double ret = d1;
for (double item : d2) {
ret = mul(ret, item);
......@@ -192,7 +192,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double div(Double d1, Double d2) {
public static double divDouble(Double d1, Double d2) {
return div(StringHelper.toDouble(d1), StringHelper.toDouble(d2));
}
......@@ -221,7 +221,7 @@ public class CalcHelper {
* @param scale 保留小数
* @return 结果
*/
public static double div(Double d1, Double d2, int scale) {
public static double divDouble(Double d1, Double d2, int scale) {
return div(StringHelper.toDouble(d1), StringHelper.toDouble(d2), scale);
}
......@@ -247,7 +247,7 @@ public class CalcHelper {
* @param d2 参数2
* @return 结果
*/
public static double divList(Double d1, Double... d2) {
public static double divListDouble(Double d1, Double... d2) {
double ret = d1;
for (double item : d2) {
ret = div(ret, item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment