Looks like you can find help on StackOverflow :-)

https://stackoverflow.com/questions/16098046/how-do-i-print-a-double-value-without-scientific-notation-using-java

On Wed, Jan 12, 2022 at 7:32 AM Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Wed, Jan 12, 2022 at 8:21 AM vahid ghasemi <vahidghasemi...@gmail.com>
> wrote:
>
> > This is my sample code :
> >
> > add(new TextField<>("grossWeightInKg", new IModel<String>() {
> >
> >     @Override
> >     public String getObject() {
> >         return flightConsignment.getGrossWeightInKg() == null ? "" :
> > flightConsignment.getGrossWeightInKg().toString();
> >
>
> It is not Wicket but your code ^^
> You may want to check java.text.NumberFormat and java.text.DecimalFormat
>
>
> >     }
> > ...
> > }
> >
> > weightInKg is Double(not double).
> >
> >
> > On Tue, Jan 11, 2022 at 12:03 PM Martin Terra <
> > martin.te...@koodaripalvelut.com> wrote:
> >
> > > Also, are you using a BigDecimal or arbitrary floating point numbers
> > > <https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>? Big
> > > decimals should have a built in converter.
> > >
> > > **
> > > Martin
> > >
> > > ti 11. tammik. 2022 klo 10.26 Martin Grigorov (mgrigo...@apache.org)
> > > kirjoitti:
> > >
> > > > Please give more details
> > > >
> > > > On Tue, Jan 11, 2022 at 9:10 AM vahid ghasemi <
> > vahidghasemi...@gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > Hello,
> > > > > In wicket, the number above from 10E7 will convert to science
> number
> > in
> > > > > input.
> > > > > How can I prevent that?
> > > > >
> > > >
> > >
> >
>


-- 
Andrea Del Bene.
Apache Wicket committer.

Reply via email to