My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 1857: BigDecimal Support
80 people starred this issue and may be notified of changes. Back to list
Status:  FixedNotReleased
Owner:  jat@google.com
Cc:  r...@google.com
Type-Enhancement
Category-JRE
Milestone-2_1


Sign in to add a comment
 
Reported by emilio.i2e, Nov 16, 2007
Found in GWT Release:
1.4.60

Detailed description:
This issue is the same like  issue 287 , as the  issue 287  is closed i have
created this to reopen the issue.
I think BigDecimal should have representation in GWT although with loss of
precision.

Workaround if you have one:


Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8e2e78a5e1dbf71b/9de66edc07821168?lnk=gst&q=bigdecimal#9de66edc07821168
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/b8a89910e7908285/c20d2ee32841ab3b?lnk=gst&q=bigdecimal#c20d2ee32841ab3b
Comment 1 by juanvicente.carrasco, Nov 19, 2007
I think the same as emilio , the big decimal is an important thing  to do an ria 
application 
Comment 2 by alfonsomalo, Nov 19, 2007
+1
Comment 3 by joseluis.i2e, Feb 24, 2008
I need BigDecimal... +1
Comment 4 by ToonT...@gmail.com, Feb 29, 2008
I need BigInteger which is part of BigDecimal.
Comment 5 by gwt.team.zundel, Mar 07, 2008
A Google Code project has been started that provides BigDecimal and BigInteger

      http://code.google.com/p/gwt-math/

Labels: -Type-Defect Type-Enhancement Category-JRE
Comment 6 by emilio.i2e, Mar 07, 2008
gwt-math works fine.

Thanks a lot.
Comment 7 by treeder, May 05, 2008
Why would you not make these two things part of GWT core?  Seems a bit overkill to
add two more jars just to get BigDecimal and BigInteger support. BigDecimal is pretty
much a must have for any app that deals with numbers that need to be accurate. 
Comment 8 by appienvanveen, Jun 17, 2008
+1
Comment 9 by ramon.buckland, Aug 17, 2008
+1. Seems odd it has been left out.
Comment 10 by m.kozlowicz, Sep 19, 2008
+1
Comment 11 by latrop1, Sep 22, 2008
+1 !
Comment 12 by yxzhao100, Sep 23, 2008
+1 especially for financial apps
Comment 13 by ljl1120, Sep 24, 2008
+1
Comment 14 by dardison, Sep 29, 2008
+1
Comment 15 by marti.th, Sep 29, 2008
+1
Comment 16 by GIJoke, Oct 15, 2008
+1
Comment 17 by mvarlic, Oct 15, 2008
+1
Comment 18 by br...@google.com, Oct 21, 2008
(No comment was entered for this change.)
Labels: -priority-medium
Comment 19 by martins.tuga, Nov 02, 2008
+1
Comment 20 by rich...@zschech.net, Nov 02, 2008
+1
Comment 21 by davidwatkins73, Dec 01, 2008
+1
Comment 22 by a...@google.com, Dec 03, 2008
(No comment was entered for this change.)
Owner: sco...@google.com
Comment 23 by sco...@google.com, Dec 03, 2008
Still NotPlanned, but patches are welcome.  We will be happy to consider 
contributions for this.  Please do NOT base any implementation on the 'long' 
primitive.  Longs are emulated in GWT, so such an implementation would be unbearably 
slow with double-emulation.
Status: NotPlanned
Comment 24 by rich...@zschech.net, Dec 17, 2008
I'm interested in implementing the BigDecimal and BigInteger support for GWT.

I was thinking of basing the implementation on the OpenJDK or GNU Classpath
implementations. Does Google have preference, maybe based on licensing?

Both of these implementations use int primitives not longs.
Comment 25 by sco...@google.com, Dec 17, 2008
Apache licensing would be ideal.
Comment 26 by rich...@zschech.net, Dec 17, 2008
Hey Scott,

Wow quick reply!

Hmm maybe Harmony then?
http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/math/src/main/java/java/math/

What do you think the biggest issues will with the GWT implementation? I expect GWT
as implementing integer overflow it will have to be emulated in the BigInteger
implementation.
Comment 27 by sco...@google.com, Dec 17, 2008
Overflow is a good one.  Also, efficiency.
Comment 28 by t.broyer, Dec 18, 2008
See also the links I gave in comments to
http://intertwingly.net/blog/2008/07/11/Decimal-in-ECMAScript


Comment 29 by adam.bickford, Apr 21, 2009
Please support this, the existing gwt-math project is lacking at best.
Comment 30 by digifeed, Apr 24, 2009
Please support BigDecimal. It's really a fixed price in financial application.

Comment 31 by binarymonk01, Apr 27, 2009
+1.00  kinda shocked this is an open item.

Even if you do not directly support math operations, having the RPC/serialization
layer handle transporting the BigDecimal datatype would at least be something.


Comment 32 by paul.alok, Jul 24, 2009
It wold be great if BigDecimal support is added to GWT. 
Although I have been using gwt-math. It has some issue, like it does not extend
java.lang.Number. and sum common number functions are missing. Also feels like
BigDecimal should be part of GWT
Comment 33 by jasandino, Aug 06, 2009
Wow. Still an issue after almost two years.  I would also benefit from this
enhancement, so if it makes any difference, here's another vote...
Comment 34 by mirceade, Aug 06, 2009
gwt-math is stagnant and surely not by far a complete implementation (in fact unless
you're working with strings when initializing BigDecimals there ain't much you can do
with it). ++1
Comment 35 by sco...@google.com, Aug 06, 2009
Patches still welcome. :)
Comment 36 by mirceade, Aug 06, 2009
Yes, but open source and LGPL should be about letting others do the hard work and you
shamelessly benefiting from their work... :)
Comment 37 by martin.zdarsky, Aug 31, 2009
I'd like the BigDecimal
Comment 38 by surapol.pairojtanachai, Oct 06, 2009
Please, get a grip. BigDecimal is needed.
Comment 39 by rich...@zschech.net, Nov 11, 2009
Here is a GWT java.math package implementation I've built:

http://code.google.com/p/gwt-java-math/

It is based on Apache Harmony's implementation but has been modified to run
efficiently in Java Script using doubles rather than longs.

It includes an almost complete implementation of BigInteger, BigDecimal, MathContext,
RoundingMode and Random.
Comment 40 by sco...@google.com, Nov 11, 2009
Richard: I read the front of your project page and this sounds pretty sweet.  I could 
see wanting to get this into GWT once it gets some miles on it.  Please keep us posted.
Status: Accepted
Owner: r...@google.com
Cc: sco...@google.com fabb...@google.com
Comment 41 by r...@google.com, Dec 16, 2009
(No comment was entered for this change.)
Owner: j...@google.com
Comment 42 by jat@google.com, Dec 16, 2009
In progress, currently available in the change branch changes/jat/bigdecimal.
Cc: -sco...@google.com -fabbott+...@google.com r...@google.com
Comment 43 by dale.wyttenbach, Jan 14, 2010
Any news?  gwt-math stopped working when we upgraded to GWT 2.0
Comment 44 by jaroslav.zaruba, Jan 14, 2010
#43: it still works for me
Comment 45 by jat@google.com, Jan 14, 2010
It was committed to trunk, but then rolled back due some test failures that appeared 
to be related to browser JS differences.  I haven't had a chance to work on it while 
we get 2.0.1 out the door (which is a bug-fix-only release), but it will be in 2.1.
Comment 46 by djb.bell, Feb 04, 2010
Brilliant.  We've used Hibernate to map Mapics/XA on our iSeries and there are 
BigDeciamls everywhere !!!

Any timescale?  Or "It'll be ready when it's ready"?  :)
Comment 47 by jat@google.com, Feb 04, 2010
Funny you should ask, as I was just working on it while waiting on something else to 
build.  I think it should be ready to re-commit shortly.
Status: Started
Comment 48 by juan.lanus, Feb 14, 2010
Yes jat! Be our big decimal idol!
So GWT becomes an option for displaying and managing financial data. 
Comment 49 by jat@google.com, Feb 25, 2010
Committed to trunk at r7618.
Status: FixedNotReleased
Labels: Milestone-2_1
Sign in to add a comment

Powered by Google Project Hosting