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

Unexpected behavior of JS parseFloat()

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.1
    • 4.3.2, 5.0.0
    • None
    • None
    • R5.0.0 Sprint 2
    • 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

            sdrg sdrg
            sdrg sdrg
            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