| To: | users@xxxxxxxxxx |
|---|---|
| Subject: | Re: [cinjug-users] Re: More results from cluster run on V matrix. |
| From: | James Hurt <jhurt@xxxxxxxxxxxxxxxx> |
| Date: | Wed, 17 Nov 2004 10:26:21 -0500 |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <20041116231057.95163.qmail@web11509.mail.yahoo.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <20041116231057.95163.qmail@web11509.mail.yahoo.com> |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) |
Abdul Habra wrote: 1. Extend the classDoable, but should it be required. The Java Language specification section 3.10.2 gives the syntax for floating point literals. I feel that the class StreamTokenizer should be fixed so numbers are recognized using this syntax, which does recognize scientific notation. Read the definition of the class StreamTokenizer again. The method parseNumbers is called one time to set a switch to recognize and convert number syntax into the equivalent double value.2. override parseNumbers() to keep track of the call, and then call super.parseNumbers 3. override nextToken() such that call super.nextToken()Easier than this is to totally ignore the supposed capability of StreamTokenizer to recognize numbers, read each token as a String and perform the conversion outside the class StreamTokenizer. But this raised the issue of why have the capability of recognizing numbers by StreamTokenizer if it is not usable. Again, I feel that the class StreamTokenizer should be fixed so numbers are recognized using the syntax in section 3.10.2 which does recognize scientific notation. How do I go about achieving this? -- James Hurt Vice President Research & Development Internet & Computer Institute Phone: 513-271-4249 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] Re: More results from cluster run on V matrix., Abdul Habra |
|---|---|
| Next by Date: | Re: [cinjug-users] Re: More results from cluster run on V matrix., James Hurt |
| Previous by Thread: | Re: [cinjug-users] Re: More results from cluster run on V matrix., Abdul Habra |
| Next by Thread: | Re: [cinjug-users] Re: More results from cluster run on V matrix., James Hurt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |