![]() |
MySQL 9.5.0
Source Code Documentation
|
Base struct used to represent decimal data type. More...
#include <decimal.h>
Public Attributes | |
| int | intg |
| The number of decimal digits (NOT number of decimal_digit_t's !) before the point. More... | |
| int | frac |
| The number of decimal digits after the point. More... | |
| int | len |
| The length of buf (length of allocated space) in decimal_digit_t's, not in bytes. More... | |
| bool | sign |
| False means positive, true means negative. More... | |
| decimal_digit_t * | buf |
| An array of decimal_digit_t's. More... | |
Base struct used to represent decimal data type.
As stated in my_decimal::init, we do not initialize these members, even though clang-tidy complains, as we want to catch uninitialized use.
| decimal_digit_t* decimal_t::buf |
An array of decimal_digit_t's.
| int decimal_t::frac |
The number of decimal digits after the point.
| int decimal_t::intg |
The number of decimal digits (NOT number of decimal_digit_t's !) before the point.
| int decimal_t::len |
The length of buf (length of allocated space) in decimal_digit_t's, not in bytes.
| bool decimal_t::sign |
False means positive, true means negative.