Last active
October 28, 2015 01:27
-
-
Save springcome/191e83bd1ebf3f4e60cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BigDecimal one = BigDecimal.ONE; | |
| BigDecimal zero = BigDecimal.ZERO; | |
| // 같으면 참 | |
| if (one.compareTo(zero) == 0) { | |
| // one이랑 zero가 같음 | |
| } | |
| // 크면 참 | |
| if (one.compareTo(zero) == 1) { | |
| // one이 zero보다 큼 | |
| } | |
| // 작으면 참 | |
| if (one.compareTo(zero) == -1) { | |
| // one이 zero보다 작음 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment