Skip to content

FORMAT has incorrect result #59443

@YangKeao

Description

@YangKeao

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

mysql> SELECT FORMAT(1000/3, 5);
+-------------------+
| FORMAT(1000/3, 5) |
+-------------------+
| 333.33333         |
+-------------------+
1 row in set (0.01 sec)

3. What did you see instead (Required)

mysql> SELECT FORMAT(1000/3, 5);
+-------------------+
| FORMAT(1000/3, 5) |
+-------------------+
| 333.33330         |
+-------------------+
1 row in set (0.01 sec)

4. What is your TiDB version? (Required)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions