Created
January 1, 2012 20:57
-
-
Save milep/1548328 to your computer and use it in GitHub Desktop.
Example about Java's BigDecimals
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
//Example about Java's BigDecimals | |
BigDecimal vat = new BigDecimal("23"); | |
BigDecimal price = new BigDecimal("200"); | |
BigDecimal h = new BigDecimal("100"); | |
price.multiply(vat.divide(h)).add(price); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment