MarcoGervasoni / gwt-math

Automatically exported from code.google.com/p/gwt-math
0 stars 0 forks source link

Add method doubleValue() to BigDecimal #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please add method doubleValue() to BigDecimal.

public double doubleValue();

Original issue reported on code.google.com by johnth...@gmail.com on 8 Jan 2009 at 4:26

GoogleCodeExporter commented 9 years ago
We should extend Number and we can implement a doubleValue() by doing:

return new Double(this.toString());

Might not be the best approach, but should enough for simple cases.

Original comment by djbr...@gmail.com on 10 Feb 2009 at 11:48

GoogleCodeExporter commented 9 years ago
Fixed in 2.1

Original comment by marco.ge...@gmail.com on 6 Aug 2009 at 9:46