Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    BigDecimal precision Issue with TextItem setters

    Hi Isomorphic,

    We were using version of 6.1p20170630 and Enterprise as skin style.

    Issue : When set BigDecimal value to TextItem with setters, it rounded to different value than the actual one.

    Example with sample code:
    private TextItem field1;
    field1.setValue(90.12345678912346);
    field1.getValue() returns '90.12345678912347'. --> (which is wrong.)

    Could you please tell us why this behavior ?

    #2
    Hi dastagiri89,

    please see stringInBrowser and GwtFloatVsDouble.
    Most likely the issue is that every number in JS is of the same type "Number".

    Best regards
    Blama

    Comment

    Working...
    X