BloombergLP::bdldfp::operator""_d128

Parse the specified literal text into a decimal floating-point value.

Synopses

Declared in <bdldfp_decimal.h>

Parse the specified literal text into a decimal floating-point value.

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

Parse the specified literal text into a decimal floating-point value.

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

Return Value

  • decimal object of the return type initialized to infinity with the same sign
  • the parsed Decimal128 value

Parameters

NameDescription
strcharacter sequence to parse
lenlength of str, excluding the terminating null