|
@ -135,9 +135,10 @@ public class CommonUtil {
|
|
|
amLong = Integer.valueOf(currency+"00");
|
|
|
}else if(length - index >= 3){
|
|
|
amLong = Integer.valueOf((currency.substring(0, index+3)).replace(".", ""));
|
|
|
Integer i = Integer.valueOf(currency.substring(index+3,index+4));
|
|
|
if(i>=5){
|
|
|
amLong++;
|
|
|
if(length-index>3){
|
|
|
if(Integer.valueOf(currency.substring(index+3,index+4))>=5){
|
|
|
amLong++;
|
|
|
}
|
|
|
}
|
|
|
}else if(length - index == 2){
|
|
|
amLong = Integer.valueOf((currency.substring(0, index+2)).replace(".", "")+0);
|