Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use MySQL fixed-point number

Shulou Source: shulou.com Published: 2022-06-01 13:09:53 10月03日 Update

This article mainly shows you "how to use MySQL fixed-point numbers", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use MySQL fixed-point numbers" this article.

MySQL fixed point number

Principle:

Separate the integer part from the decimal part

Syntax:

Decimal (MMAE D)

Note:

Decimal is variable in length, roughly 4 bytes for every 9 digits, integers and decimals are calculated separately, M max is 65 Magi D max is 30, default is (10p2)

Both fixed-point and floating-point numbers support unsigned, showing a width of 0 fill.

The above is all the contents of the article "how to use MySQL fixed-point numbers". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Points content articles maximum decimal integer part storage learning help principles bytes width numbers easy to understand more organization knowledge symbols tape Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple NVidia macOS Xiaomi