Thanks Yegor. On Feb 24, 9:19 pm, Yegor <yegor.jba...@gmail.com> wrote: > Hi, PARAG, > > Whether "0" is the correct result or not is debatable. After all, an > empty string is not a number at all, therefore for number zero, the > zero symbol itself is not a leading zero. > > Perhaps the documentation should clarify that only leading zeros of > the whole portion and trailing zeros of the fraction portion of the > number will show as absent, not just any zero symbol. > > As for solution for your problem, just put an if statement: > > if (num == 0) { > return "";} else { > > return formatter.format(num); > > } > > Yegor > > On Feb 24, 1:45 am, PARAG <paragbchaudh...@gmail.com> wrote: > > > Hi, > > > I have number format defined as #. For value 0 I am expecting it to be > > empty but it shows 0 value. Is any thing I can do here to get the > > correct behavior? > > > Thank you > >
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.