MarcoGervasoni / gwt-math

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

divide with one parameter not emulated #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. BigDecimal d1 = new BigDecimal(4.6d);
2. BigDecimal d2 = new BigDecimal(5.23d);
3. Log.info(d1.divide(d2).toString());

What is the expected output? What do you see instead?
Expected is divided number, but in the error console I see:
Line 111: The method divide(BigDecimal, int) in the type BigDecimal is not 
applicable for the arguments (BigDecimal)

The divide(BigDecimal) method is not emulated but I don't know for what reason. 
Maybe it was just forgotten because other (like add, multiply,..) have it.

Original issue reported on code.google.com by ladislav...@gmail.com on 15 Jun 2010 at 3:14

GoogleCodeExporter commented 9 years ago
GWT 2.1 has BigDecimal built in based on http://code.google.com/p/gwt-java-math 
which includes all BigDecimal methods.

Original comment by rich...@zschech.net on 5 Aug 2010 at 6:14