Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-869

Unexpected behavior of JS parseFloat()

    XporterXMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.3.2, 5.0.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      R5.0.0 Sprint 2
    • Story Points:
      1
    • Requirement Status:

      4.3.2 - UNCOVERED

      5.0.0 - UNCOVERED

      Description

      Problem is in float value of number returned by parseFloat.

      When I put %

      {parseFloat(90.05)}

      on excel, the result return me 90,0500030517578.

      I have tried this:

      %

      {parseFloat(Number(90.01).toFixed(2))}

      %

      {parseFloat(90.01.toFixed(2))}

      but the result is the same.

        Attachments

          Activity

            People

            Assignee:
            sdrg Severino Goios
            Reporter:
            sdrg Severino Goios
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 4 hours, 10 minutes Remaining Estimate - 3 hours, 50 minutes
                3h 50m
                Logged:
                Time Spent - 4 hours, 10 minutes Remaining Estimate - 3 hours, 50 minutes
                4h 10m