|
Lightweight 0.20261105.1
|
#include <SqlValueStorage.hpp>
Public Attributes | |
| std::uint8_t | precision |
| Total number of decimal digits. | |
| std::int8_t | scale |
| Number of digits after the decimal point. | |
| std::uint8_t | sign |
| 1 for positive, 0 for negative. | |
| std::uint8_t | val [16] |
| Little-endian unscaled magnitude. | |
Lightweight-owned storage of a SQL NUMERIC / DECIMAL value.
Layout-identical to ODBC's SQL_NUMERIC_STRUCT.
Definition at line 74 of file SqlValueStorage.hpp.
| std::uint8_t Lightweight::SqlNumericStorage::precision |
Total number of decimal digits.
Definition at line 77 of file SqlValueStorage.hpp.
Referenced by Lightweight::SqlNumeric< ThePrecision, TheScale >::assign().
| std::int8_t Lightweight::SqlNumericStorage::scale |
Number of digits after the decimal point.
Definition at line 79 of file SqlValueStorage.hpp.
Referenced by Lightweight::SqlNumeric< ThePrecision, TheScale >::assign(), Lightweight::SqlNumeric< ThePrecision, TheScale >::ToDouble(), Lightweight::SqlNumeric< ThePrecision, TheScale >::ToFloat(), and Lightweight::SqlNumeric< ThePrecision, TheScale >::ToLongDouble().
| std::uint8_t Lightweight::SqlNumericStorage::sign |
1 for positive, 0 for negative.
Definition at line 81 of file SqlValueStorage.hpp.
Referenced by Lightweight::SqlNumeric< ThePrecision, TheScale >::assign(), and Lightweight::SqlNumeric< ThePrecision, TheScale >::ToUnscaledValue().
| std::uint8_t Lightweight::SqlNumericStorage::val[16] |
Little-endian unscaled magnitude.
Definition at line 83 of file SqlValueStorage.hpp.
Referenced by Lightweight::SqlNumeric< ThePrecision, TheScale >::assign(), and Lightweight::SqlNumeric< ThePrecision, TheScale >::ToUnscaledValue().