728x90
new BigDecimal(20).compareTo( new BigDecimal(20)) 0
new BigDecimal(20).compareTo( new BigDecimal(30)) -1
new BigDecimal(20).compareTo( new BigDecimal(10)) 1
Specified by:compareTo in interface Comparable<BigDecimal>Parameters:val - BigDecimal to which this BigDecimal is to be compared.Returns:-1, 0, or 1 as this BigDecimal is numerically less than, equal to, or greater than val. |
.divide(sumBal, 2, BigDecimal.ROUND_DOWN).multiply(new BigDecimal(100));
'For Real > Java & Spring' 카테고리의 다른 글
1. 자바 기본용어- 자바 플랫폼 (0) | 2019.06.09 |
---|---|
[스프링부트 개념과 활용 by 백기선] 2부 스프링 부트 시작하기. (0) | 2019.05.22 |
스프링 부트 jsp js 바로 수정가능 (0) | 2019.03.19 |
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] (0) | 2019.03.12 |
[방통대 자바프로그래밍 4강]클래스, 상속 (0) | 2019.03.04 |