Created
March 22, 2015 06:36
-
-
Save birchestx/ae7a4b3d107634b8bb0a to your computer and use it in GitHub Desktop.
Sort collection of BigDecimals From http://stackoverflow.com/questions/20012957/is-it-not-possible-to-store-bigdecimal-values-in-a-single-dimensional-array
This file contains 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 x1 = new BigDecimal("1235.2345"); | |
BigDecimal x2 = new BigDecimal("235.2345"); | |
BigDecimal[] nums = {x1,x2}; | |
List<BigDecimal> lnums = Arrays.asList(nums); | |
Collections.sort(lnums); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment