BigDecimal的RoundingMode舍入模式与MathContext
说再多,也比不上源码!直接上JDK8的源码。源码有注释有解说还有示例,说得很清晰。/* * %W% %E% * * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms....