Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6841

test decimal math

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • N/A
    • None
    • None

    Description

      Even after all these years there is a steady stream of bugs in decimal math.
      We need a proactive approach instead, to try to find as many decimal bugs as
      possible.

      Suggestion: RQG testing of the expression

      ABS(CAST(a + b AS DOUBLE)/(CAST(a AS DOUBLE) + CAST(b AS DOUBLE)) - 1) < 0.0001

      where RQG randomly generates a and b, and the operation is one of +,
      -, *, /, mod.

      One should try also very small numbers (0.00...{~50 times}...01) as well as
      large ones.

      Attachments

        Issue Links

          Activity

            People

              elenst Elena Stepanova
              serg Sergei Golubchik
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.