Re: JSONNumber getValue() and ints

2008-10-01 Thread Alex Rice
Seven, I am seeing it in the Javadoc (GWT API Reference) for com.google.gwt.json.client.JSONNumber. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: JSONNumber getValue() and ints

2008-10-01 Thread Seven Reeds
Oh! feh, I had googled gwt JSONNumber. The class ref that came back was the 1.4 doc version. 1.5 is very different it seems. thanks for everyone's help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web

RE: JSONNumber getValue() and ints

2008-09-30 Thread Perelman Nathan (Nathan)
Use doubleValue() and then cast to int. All JavaScript numbers (and therefore all JSONNumbers) are really doubles. -Original Message- From: Google-Web-Toolkit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of seven.reeds Sent: Tuesday, September 30, 2008 16:43 To: Google Web

Re: JSONNumber getValue() and ints

2008-09-30 Thread Alex Rice
A very good question, because there is a doubleValue() but no intValue() ... Hmm, On Sep 30, 2:43 pm, seven.reeds [EMAIL PROTECTED] wrote: Hi I am using Eclipse 3.4.1, java 1.6.0_07, gwt 1.5.2 under linux. I have a JSON object that contains an integer value.  I am trying the following to

Re: JSONNumber getValue() and ints

2008-09-30 Thread Alex Rice
Got it! thanks On Sep 30, 2:52 pm, Perelman Nathan (Nathan) [EMAIL PROTECTED] wrote: Use doubleValue() and then cast to int. All JavaScript numbers (and therefore all JSONNumbers) are really doubles. --~--~-~--~~~---~--~~ You received this message because you