[#BloombergLP-bdldfp-DecimalImpUtil_IntelDfp-uint64ToDecimal128] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp.adoc[DecimalImpUtil_IntelDfp]::uint64ToDecimal128 :relfileprefix: ../../../ :mrdocs: Return a `Decimal128` object having the value closest to the specified `value` subject to the conversion rules as defined by IEEE‐754: == Synopsis Declared in `<bdldfp_decimalimputil_inteldfp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/ValueType128.adoc[DecimalImpUtil_IntelDfp::ValueType128] uint64ToDecimal128(unsigned long long value); ---- == Description * If `value` is zero then initialize this object to a zero with an unspecified sign and an unspecified exponent. * Otherwise if `value` has a value that is not exactly representable using `std::numeric_limits<Decimal128>::max_digit` decimal digits then return `value` rounded according to the rounding direction. * Otherwise initialize this object to `value`. The exponent 0 (quantum 1e‐33) is preferred during conversion unless it would cause unnecessary loss of precision. [.small]#Created with https://www.mrdocs.com[MrDocs]#