Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1806

Double values are rounded to 5 decimal places in studio

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Fixed
    • None
    • 1.31.0
    • None
    • All
    • Small

    Description

      When we try to pass the double value to the TCK component in studio, it will be rounded to 5 decimal places. I.e. when we have a double value 0.123456789 it will be rounded to 0.12346

      Looks like the problem happens in the MappingUtils.coerce() method

      if (Double.class == expectedType) {
          return new BigDecimal(Double.class.cast(value)).setScale(5, RoundingMode.HALF_UP).doubleValue();
      }
      

      We can see that we have rounding to 5 decimal places for any double value.

      Salesforce Properties

        Case
        Case Origin
        Case Type
        Case Age
        00214914 Email 10

        Attachments

          Activity

            People

              emmanuel_g emmanuel gallois
              dchmyga Dmytro Chmyga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: