Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1709

[C++] Decimal.ToString is incorrect for negative scale

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.1
    • Fix Version/s: 0.8.0
    • Component/s: C++

      Description

      Decimal128::ToString(int precision, int scale) doesn't handle scale < 0 correctly. It should tack on an extra e<abs(scale)> to the end.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cpcloud Phillip Cloud
                Reporter:
                cpcloud Phillip Cloud
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: