mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-05 08:00:48 +08:00
解决支付精度问题
This commit is contained in:
@@ -452,10 +452,4 @@ public class FuiouPayService extends BasePayService {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
BigDecimal decimal = new BigDecimal(2295.204);
|
||||
System.out.println(decimal.toString());
|
||||
System.out.println(decimal.multiply(new BigDecimal(100)).setScale( 0, BigDecimal.ROUND_HALF_UP));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user