Skip to content

Commit

Permalink
更改注释
Browse files Browse the repository at this point in the history
  • Loading branch information
chenssy89 committed May 19, 2016
1 parent 78ecf88 commit 0cab107
Show file tree
Hide file tree
Showing 18 changed files with 142 additions and 168 deletions.
30 changes: 13 additions & 17 deletions src/com/JUtils/base/BigDecimalUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

/**
* 提供精确的加减乘除运算
* @Project:JUtils
* @file:BigDecimalUtils.java
*
* @Author:chenssy
* @data:2014年9月15日
* @date:2014年9月15日
*/
public class BigDecimalUtils {

Expand All @@ -25,7 +24,7 @@ public class BigDecimalUtils {
*
* 加法运算
* @autor:chenssy
* @data:2014年9月15日
* @date:2014年9月15日
*
* @param v1 加数
* @param v2 被加数
Expand All @@ -41,7 +40,7 @@ public static String add(String v1,String v2){
* 除法运算<br>
* 当发生除不尽的情况时,由scale参数指定精度,以后的数字四舍五入。
* @autor:chenssy
* @data:2014年9月15日
* @date:2014年9月15日
*
* @param v1
* 除数
Expand Down Expand Up @@ -76,7 +75,7 @@ public static String div(String v1, String v2, int scale, int round) {
* v1 = v2 return 0<br>
* v1 < v2 return -1
* @autor:chenssy
* @data:2014年9月15日
* @date:2014年9月15日
*
* @param v1
* 比较数
Expand All @@ -93,7 +92,7 @@ public static int compareTo(String v1,String v2){
/**
* 返回较小数
* @autor:chenssy
* @data:2014年9月15日
* @date:2014年9月15日
*
* @param v1
* @param v2
Expand All @@ -108,7 +107,7 @@ public static String returnMin(String v1,String v2){
/**
* 返回较大数
* @autor:chenssy
* @data:2014年9月15日
* @date:2014年9月15日
*
* @param v1
* @param v2
Expand All @@ -123,7 +122,7 @@ public static String returnMax(String v1,String v2){
/**
* 处理BigDecimal数据,保留scale位小数
* @author:chenssy
* @data:2014年10月21日
* @date:2014年10月21日
*
* @param value
* @param scale
Expand All @@ -140,7 +139,7 @@ public static BigDecimal getValue(BigDecimal value,int scale){
* 将object转换为Bigdecimal
*
* @author:chenssy
* @data:2014年10月17日
* @date:2014年10月17日
*
* @param value
* 待转换的数值
Expand All @@ -154,14 +153,11 @@ public static BigDecimal getBigDecimal(Object value){
else if(value instanceof Integer){
resultValue = new BigDecimal((Integer)value);
}
else if(value instanceof Double){
resultValue = new BigDecimal((Integer)value);
}
else if(value instanceof Long){
resultValue = new BigDecimal((Long)value);
}
else if(value instanceof Double){
resultValue = new BigDecimal((Integer)value);
resultValue = new BigDecimal((Double)value);
}
else{
resultValue = (BigDecimal) value;
Expand All @@ -175,7 +171,7 @@ else if(value instanceof Double){
* 将object转换为Bigdecimal,若object为空,则返回resultValue
*
* @autor:chenssy
* @data:2014年9月20日
* @date:2014年9月20日
*
* @param value
* @return
Expand All @@ -193,7 +189,7 @@ public static BigDecimal getBigDecimal(Object value,BigDecimal resultValue){
/**
* 将BigDecimal 转换成Long
* @autor:chenssy
* @data:2014年9月20日
* @date:2014年9月20日
*
* @param value
* @return
Expand All @@ -208,7 +204,7 @@ public static Long setBigDecimalToLong(BigDecimal value){
/**
* 将BigDecimal 转换成integer
* @autor:huangc
* @data:2014年9月20日
* @date:2014年9月20日
*
* @param value
* @return
Expand Down
5 changes: 5 additions & 0 deletions src/com/JUtils/base/Convert.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.JUtils.base;

public class Convert {

}
Loading

0 comments on commit 0cab107

Please sign in to comment.