the same problems i have with large double values:
new Double(600702589).toString()
=> GWTShell: "6.00702589E8"
=> all other browsers: "600702589"

i filed this as issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2887

On 15 Sep., 15:27, MN <[EMAIL PROTECTED]> wrote:
> great! thanks :-)
>
> On 15 Sep., 15:17, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
>
> > MN schrieb:
>
> > > new Double("1.0").toString() => "1.0" <---
> > > new Double("1.1").toString() => "1.1"
>
> > > in all other browsers i get this:
>
> > > new Double("1.0").toString() => "1"
> > > new Double("1.1").toString() => "1.1"
>
> > > how i can convert the double value to string that i get in GWTShell
> > > also the "1" value instead of "1.0"?
>
> > NumberFormat nf = NumberFormat.getDecimalFormat();
> > nf.format(1.0);
>
> > Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to