check (Math.round(your number*100))/100d;
On Oct 17, 3:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> google java NumberFormat, if that doesn't work for you, checkout
> substring, assumes you're truncating a string and not rounding a
> number, which part of the value of GWT is that it is a typed language.
>
> Later,
> Shaffer
>
> On Oct 17, 12:01 am, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Fri, Oct 17, 2008 at 1:35 AM, navS <[EMAIL PROTECTED]> wrote:
> > > I have a number like 34.550000000002
> > > i need to limit the decimal palces to 2, like 34.56.
>
> > You need NumberFormat.
>
> > Ian- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---