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

<negative value> MOD <fractional divisor> returns negative zero

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.5.40
    • Fix Version/s: 5.5
    • Component/s: None
    • Labels:
      None

      Description

      It doesn't look very dangerous, just strange:

      MariaDB [test]> select -1 % 0.1;
      +----------+
      | -1 % 0.1 |
      +----------+
      |     -0.0 |
      +----------+
      1 row in set (0.00 sec)
      

      Same in MySQL 5.6. PostgreSQL returns a normal zero.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              There are no comments yet on this issue.

                People

                • Assignee:
                  serg Sergei Golubchik
                  Reporter:
                  elenst Elena Stepanova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: