https://bz.apache.org/bugzilla/show_bug.cgi?id=65190

            Bug ID: 65190
           Summary: Wrong formatting when format starts with0#
           Product: POI
           Version: 5.0.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: dev@poi.apache.org
          Reporter: demur...@ockham-solutions.fr
  Target Milestone: ---

DataFormatter formatter = new HSSFDataFormatter(Locale.ENGLISH);

// Ok
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "0"));

// Ok
Assert.assertEquals("12334567890123", 
formatter.formatRawCellContents(12334567890123.0, 0, "#"));

// Ok
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "#0"));

// Fails  expected:<1[233456789012]3> but was:<1[.23346E1]3>
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "0#"));

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to