BloombergLP::bdldfp::operator""_d128

operator""_d128 overloads

Synopses

Declared in <bdldfp_decimal.h>

Produce an object of the indicated return type by parsing the specified str having the specified len excluding the terminating null character that represents a floating-point number written in both fixed and scientific notations. These user-defined literal suffixes can be applied to both numeric and string literals, (i.e., 1.2_d128, "1.2"_d128 or "inf"_d128). The resulting decimal object is initialized as follows:

bdldfp::Decimal128
operator""_d128(char const* str);
» more...

User-defined literal for Decimal128 values with explicit length.

bdldfp::Decimal128
operator""_d128(
    char const* str,
    std::size_t len);
» more...