STD::DECIMAL::DECIMAL128(3)
π std::decimal::decimal128(3) β Library Functions Manual π
okay bestie, come sit with me, we're learning a class today and honestly? she's kind of a baddie. this page lives in the Library Functions Manual and it's all about std::decimal::decimal128. no cap, there are a lot of constructors. we're listing every single one. let's go β¨
πΈ NAME πΈ
std::decimal::decimal128 β the 3.2.4 Class decimal128. that's the whole name section, she's mysterious, she's lowkey iconic, she's a class. π
π¦ SYNOPSIS π¦
#include <decimal>
β¨ Public Types β¨
typedef float __decfloat128β that's the type. it's afloat, bestie, and no we're not joking, that's literally what it says. π
π Public Member Functions π
okay this is the main event, the whole group chat is here:
decimal128 (__decfloat128 __z)β Conforming extension: Conversion from scalar decimal type. she's the special one, the one that gets her own docs section later. main character energy fr.decimal128 (decimal32 d32)β constructor, but make itdecimal32.decimal128 (decimal64 d64)β constructor, but make itdecimal64.decimal128 (double __r)β constructor from adouble.decimal128 (float __r)β constructor from afloat.decimal128 (int __z)β constructor from anint.decimal128 (long __z)β constructor from along.decimal128 (long double __r)β constructor from along double.decimal128 (long long __z)β constructor from along long.decimal128 (unsigned int __z)β constructor from anunsigned int.decimal128 (unsigned long __z)β constructor from anunsigned long.decimal128 (unsigned long long __z)β constructor from anunsigned long long. she takes everyone, no gatekeeping. π«Ά__decfloat128 __getval (void)β grab the value out. yes, the name has double underscores, that's just how she is.void __setval (__decfloat128 __x)β set the value. again with the underscores, we don't make the rules. πoperator long long () constβ conversion operator tolong long. it'sconst, she's committed.decimal128 & operator*= (decimal128 __rhs)β multiply-assign by adecimal128.decimal128 & operator*= (decimal32 __rhs)β multiply-assign by adecimal32.decimal128 & operator*= (decimal64 __rhs)β multiply-assign by adecimal64.decimal128 & operator*= (int __rhs)β multiply-assign by anint.decimal128 & operator*= (long __rhs)β multiply-assign by along.decimal128 & operator*= (long long __rhs)β multiply-assign by along long.decimal128 & operator*= (unsigned int __rhs)β multiply-assign by anunsigned int.decimal128 & operator*= (unsigned long __rhs)β multiply-assign by anunsigned long.decimal128 & operator*= (unsigned long long __rhs)β multiply-assign by anunsigned long long. she multiplies, she assigns, she does both at once. slay.decimal128 & operator++ ()β pre-increment. bumps her up before you even look.decimal128 operator++ (int)β post-increment. takes a dummyint, returns adecimal128copy, classic.decimal128 & operator+= (decimal128 __rhs)β plus-equals by adecimal128.decimal128 & operator+= (decimal32 __rhs)β plus-equals by adecimal32.decimal128 & operator+= (decimal64 __rhs)β plus-equals by adecimal64.decimal128 & operator+= (int __rhs)β plus-equals by anint.decimal128 & operator+= (long __rhs)β plus-equals by along.decimal128 & operator+= (long long __rhs)β plus-equals by along long.decimal128 & operator+= (unsigned int __rhs)β plus-equals by anunsigned int.decimal128 & operator+= (unsigned long __rhs)β plus-equals by anunsigned long.decimal128 & operator+= (unsigned long long __rhs)β plus-equals by anunsigned long long. adding to her vibe, one type at a time. πdecimal128 & operator-- ()β pre-decrement. she comes down before you blink.decimal128 operator-- (int)β post-decrement. dummyintagain, returns adecimal128, we've been here before.decimal128 & operator-= (decimal128 __rhs)β minus-equals by adecimal128.decimal128 & operator-= (decimal32 __rhs)β minus-equals by adecimal32.decimal128 & operator-= (decimal64 __rhs)β minus-equals by adecimal64.decimal128 & operator-= (int __rhs)β minus-equals by anint.decimal128 & operator-= (long __rhs)β minus-equals by along.decimal128 & operator-= (long long __rhs)β minus-equals by along long.decimal128 & operator-= (unsigned int __rhs)β minus-equals by anunsigned int.decimal128 & operator-= (unsigned long __rhs)β minus-equals by anunsigned long.decimal128 & operator-= (unsigned long long __rhs)β minus-equals by anunsigned long long. subtracting from the group chat, respectfully.decimal128 & operator/= (decimal128 __rhs)β divide-equals by adecimal128.decimal128 & operator/= (decimal32 __rhs)β divide-equals by adecimal32.decimal128 & operator/= (decimal64 __rhs)β divide-equals by adecimal64.decimal128 & operator/= (int __rhs)β divide-equals by anint.decimal128 & operator/= (long __rhs)β divide-equals by along.decimal128 & operator/= (long long __rhs)β divide-equals by along long.decimal128 & operator/= (unsigned int __rhs)β divide-equals by anunsigned int.decimal128 & operator/= (unsigned long __rhs)β divide-equals by anunsigned long.decimal128 & operator/= (unsigned long long __rhs)β divide-equals by anunsigned long long. dividing, but make it fashion. π
π Detailed Description π
3.2.4 Class decimal128.
that's it. that's the detailed description. she said "I am who I am" and moved on. periodt. π
π Constructor & Destructor Documentation π
std::decimal::decimal128::decimal128 (__decfloat128 __z) [inline]
Conforming extension: Conversion from scalar decimal type.
look at her, getting her own subsection with her own [inline] tag. the way that she converts from a scalar decimal type and is a conforming extension?? obsessed. π§
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
not a human, just a robot doing her little documentation chores, and honestly? she ate. π€β¨
and that's the whole page bestie!! this one came to you from libstdc++, living under std::decimal::decimal128(3) in the Library Functions Manual β no date on this footer, so don't @ me, the page simply didn't bring one. go forth and construct responsibly. π
ππ¦
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms