Skip to content

Commit

Permalink
Replace "bit" with "digit" (#9581) (#9582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Jul 15, 2022
1 parent 90b328d commit 0c73fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data-type-numeric.md
Expand Up @@ -130,7 +130,8 @@ FLOAT(p) [UNSIGNED] [ZEROFILL]
> **Note:**
>
> As in MySQL, the `FLOAT` data type stores approximate values. For values such as currency, it is recommended to use the `DECIMAL` type instead.
> In TiDB, the default precision of the `FLOAT` data type is 8 bits, but in MySQL, the default precision is 6 bits. For example, assuming that you insert `123456789` and `1.23456789` into columns of the `FLOAT` type in both TiDB and MySQL, when you query the corresponding values in MySQL, you get `123457000` and `1.23457`, while in TiDB, you get `123456790` and `1.2345679`.
>
> In TiDB, the default precision of the `FLOAT` data type is 8 digits, but in MySQL, the default precision is 6 digits. For example, assuming that you insert `123456789` and `1.23456789` into columns of the `FLOAT` type in both TiDB and MySQL, when you query the corresponding values in MySQL, you get `123457000` and `1.23457`, while in TiDB, you get `123456790` and `1.2345679`.
### `DOUBLE` type

Expand Down

0 comments on commit 0c73fdd

Please sign in to comment.