Represents an IEEE 754-2008 BSON Decimal128 value in a platform-independent way.
More...
#include <decimal128.hpp>
|
| decimal128 ()=default |
| Constructs a BSON Decimal128 value representing zero.
|
|
| decimal128 (uint64_t high, uint64_t low) noexcept |
| Constructs a BSON Decimal128 from high and low 64-bit big-endian parts.
|
|
| decimal128 (stdx::string_view str) |
| Constructs a BSON Decimal128 from a string.
|
|
std::string | to_string () const |
| Converts this decimal128 value to a string representation.
|
|
uint64_t | high () const |
| Accessor for high 64 bits.
|
|
uint64_t | low () const |
| Accessor for low 64 bits.
|
|
Represents an IEEE 754-2008 BSON Decimal128 value in a platform-independent way.
◆ decimal128() [1/2]
bsoncxx::decimal128::decimal128 |
( |
uint64_t |
high, |
|
|
uint64_t |
low |
|
) |
| |
|
inlinenoexcept |
Constructs a BSON Decimal128 from high and low 64-bit big-endian parts.
- Parameters
-
high | The high 64-bits. |
low | The low 64-bits. |
◆ decimal128() [2/2]
bsoncxx::decimal128::decimal128 |
( |
stdx::string_view |
str | ) |
|
|
explicit |
Constructs a BSON Decimal128 from a string.
- Parameters
-
str | A string representation of a decimal number. |
- Exceptions
-
◆ to_string()
std::string bsoncxx::decimal128::to_string |
( |
| ) |
const |
Converts this decimal128 value to a string representation.
- Returns
- A string representation of a IEEE 754-2008 decimal number.
◆ operator!=
◆ operator==
The documentation for this class was generated from the following file: