This is the Jdk7-b147 version of BigDecimal.doubleValue()
public double doubleValue(){
if (scale == 0 && intCompact != INFLATED)
return (double)intCompact;
// Somewhat inefficient, but guaranteed to work.
return Double.parseDouble(this.toString());
}
They admit that this way is inefficient! Is there a better/faster way than to use this method?