MySQL 9.0.0
Source Code Documentation
decimal_t Struct Reference

Base struct used to represent decimal data type. More...

#include <decimal.h>

Inheritance diagram for decimal_t:
[legend]

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_tbuf
 An array of decimal_digit_t's. More...
 

Detailed Description

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.

Member Data Documentation

◆ buf

decimal_digit_t* decimal_t::buf

An array of decimal_digit_t's.

◆ frac

int decimal_t::frac

The number of decimal digits after the point.

◆ intg

int decimal_t::intg

The number of decimal digits (NOT number of decimal_digit_t's !) before the point.

◆ len

int decimal_t::len

The length of buf (length of allocated space) in decimal_digit_t's, not in bytes.

◆ sign

bool decimal_t::sign

False means positive, true means negative.


The documentation for this struct was generated from the following file: