STD::DECIMAL::DECIMAL128(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 6 versions
, in arch rolling, fedora 44

πŸ’œ 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 a float, 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 it decimal32.
  • decimal128 (decimal64 d64) β€” constructor, but make it decimal64.
  • decimal128 (double __r) β€” constructor from a double.
  • decimal128 (float __r) β€” constructor from a float.
  • decimal128 (int __z) β€” constructor from an int.
  • decimal128 (long __z) β€” constructor from a long.
  • decimal128 (long double __r) β€” constructor from a long double.
  • decimal128 (long long __z) β€” constructor from a long long.
  • decimal128 (unsigned int __z) β€” constructor from an unsigned int.
  • decimal128 (unsigned long __z) β€” constructor from an unsigned long.
  • decimal128 (unsigned long long __z) β€” constructor from an unsigned 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 to long long. it's const, she's committed.
  • decimal128 & operator*= (decimal128 __rhs) β€” multiply-assign by a decimal128.
  • decimal128 & operator*= (decimal32 __rhs) β€” multiply-assign by a decimal32.
  • decimal128 & operator*= (decimal64 __rhs) β€” multiply-assign by a decimal64.
  • decimal128 & operator*= (int __rhs) β€” multiply-assign by an int.
  • decimal128 & operator*= (long __rhs) β€” multiply-assign by a long.
  • decimal128 & operator*= (long long __rhs) β€” multiply-assign by a long long.
  • decimal128 & operator*= (unsigned int __rhs) β€” multiply-assign by an unsigned int.
  • decimal128 & operator*= (unsigned long __rhs) β€” multiply-assign by an unsigned long.
  • decimal128 & operator*= (unsigned long long __rhs) β€” multiply-assign by an unsigned 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 dummy int, returns a decimal128 copy, classic.
  • decimal128 & operator+= (decimal128 __rhs) β€” plus-equals by a decimal128.
  • decimal128 & operator+= (decimal32 __rhs) β€” plus-equals by a decimal32.
  • decimal128 & operator+= (decimal64 __rhs) β€” plus-equals by a decimal64.
  • decimal128 & operator+= (int __rhs) β€” plus-equals by an int.
  • decimal128 & operator+= (long __rhs) β€” plus-equals by a long.
  • decimal128 & operator+= (long long __rhs) β€” plus-equals by a long long.
  • decimal128 & operator+= (unsigned int __rhs) β€” plus-equals by an unsigned int.
  • decimal128 & operator+= (unsigned long __rhs) β€” plus-equals by an unsigned long.
  • decimal128 & operator+= (unsigned long long __rhs) β€” plus-equals by an unsigned 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. dummy int again, returns a decimal128, we've been here before.
  • decimal128 & operator-= (decimal128 __rhs) β€” minus-equals by a decimal128.
  • decimal128 & operator-= (decimal32 __rhs) β€” minus-equals by a decimal32.
  • decimal128 & operator-= (decimal64 __rhs) β€” minus-equals by a decimal64.
  • decimal128 & operator-= (int __rhs) β€” minus-equals by an int.
  • decimal128 & operator-= (long __rhs) β€” minus-equals by a long.
  • decimal128 & operator-= (long long __rhs) β€” minus-equals by a long long.
  • decimal128 & operator-= (unsigned int __rhs) β€” minus-equals by an unsigned int.
  • decimal128 & operator-= (unsigned long __rhs) β€” minus-equals by an unsigned long.
  • decimal128 & operator-= (unsigned long long __rhs) β€” minus-equals by an unsigned long long. subtracting from the group chat, respectfully.
  • decimal128 & operator/= (decimal128 __rhs) β€” divide-equals by a decimal128.
  • decimal128 & operator/= (decimal32 __rhs) β€” divide-equals by a decimal32.
  • decimal128 & operator/= (decimal64 __rhs) β€” divide-equals by a decimal64.
  • decimal128 & operator/= (int __rhs) β€” divide-equals by an int.
  • decimal128 & operator/= (long __rhs) β€” divide-equals by a long.
  • decimal128 & operator/= (long long __rhs) β€” divide-equals by a long long.
  • decimal128 & operator/= (unsigned int __rhs) β€” divide-equals by an unsigned int.
  • decimal128 & operator/= (unsigned long __rhs) β€” divide-equals by an unsigned long.
  • decimal128 & operator/= (unsigned long long __rhs) β€” divide-equals by an unsigned 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