Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 97110 invoked from network); 29 Jan 2004 19:05:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Jan 2004 19:05:18 -0000 Received: (qmail 36289 invoked by uid 500); 29 Jan 2004 19:05:03 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 36267 invoked by uid 500); 29 Jan 2004 19:05:03 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 36225 invoked from network); 29 Jan 2004 19:05:02 -0000 Received: from unknown (HELO geriatrix.itellix.net) (203.145.183.216) by daedalus.apache.org with SMTP; 29 Jan 2004 19:05:02 -0000 Received: from localhost (getafix.dm.itellix.net [10.0.1.2]) by geriatrix.itellix.net (Postfix) with ESMTP id E2B574310A0; Fri, 30 Jan 2004 00:06:04 +0530 (IST) Received: from 202.88.159.118 ([202.88.159.118]) by www.itellix.net (IMP) with HTTP for ; Fri, 30 Jan 2004 01:08:51 +051800 Message-ID: <1075405131.4019614bedd99@www.itellix.net> Date: Fri, 30 Jan 2004 01:08:51 +051800 From: avik.sengupta@itellix.com To: POI Users List Subject: Re: Large numbers in formula References: <20040129181026.74483.qmail@web20313.mail.yahoo.com> In-Reply-To: <20040129181026.74483.qmail@web20313.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-WebMail-Company: Itellix X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yeah, now i remember, I wrote that comment :) .. so it still needs to be done. Quoting William Zhu : > Hi there, > > For this problem, I have checked the POI source code. > There is a comment at class "FormulaParser.java" and method "Factor()": > > "//TODO:what if the number is too big to be a short? ..add factory to return > Int or Number!" > > It seems that this is a TO BE DONE problem. > Maybe "SUM(500*1000 + 1)" is a temporay solution. > > > Regards, > William Zhu > > Sasha Borodin wrote: > I was using 2.0-RC1-20031102 but have since upgraded to 2.0 final, and the > problem persists. > > I'll try to make a bug report in bugzilla - is that system open to the > general public? > > Thanks, > > -Sasha Borodin > > On 1/29/04 10:16 AM, "Avik Sengupta" wrote: > > > Which version are you using? Its not something that I was aware of, so I > > doubt its fixed... maybe you can enter a bug in bugzilla. > > > > On Thu, 2004-01-29 at 08:03, Sasha Borodin wrote: > >> Hello, > >> > >> Thanks to the POI team for such a massive undertaking and great results. > >> > >> I'm having an issue trying to setCellFormula(myFormulaString). > >> > >> myFormulaString = "SUM(500000 + 1)" > >> > >> Calling setCellFormula throws java.lang.NumberFormatException: Value out > of > >> range. Value:"500000" Radix:10 > >> > >> However, if myFormulaString = "SUM(500*1000 + 1)" > >> > >> ...which is the same number but different representation, no exception is > >> thrown and everything is fine. > >> > >> This is a doctored example to demonstrate that large numeral > representations > >> passed to the setCellFormula function seem to cause the issue. Can anyone > >> comment on this problem? Is this something that's resolved in POI 2.0? > >> > >> Thank you, > >> > >> -Sasha Borodin > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org > >> For additional commands, e-mail: poi-user-help@jakarta.apache.org > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: poi-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: poi-user-help@jakarta.apache.org > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: poi-user-help@jakarta.apache.org