日期:2014-05-20 浏览次数:20858 次
doubleValue public double doubleValue() Converts this BigDecimal to a double. This conversion is similar to the narrowing primitive conversion from double to float as defined in the Java Language Specification: if this BigDecimal has too great a magnitude represent as a double, it will be converted to Double.NEGATIVE_INFINITY or Double.POSITIVE_INFINITY as appropriate. Note that even when the return value is finite, this conversion can lose information about the precision of the BigDecimal value. Specified by: doubleValue in class Number Returns: this BigDecimal converted to a double.