std::decimal::decimal32(3)

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

🌸 NAME 🌸

okay bestie, sit down, hydrate, because this is the std::decimal::decimal32(3) page from the Library Functions Manual, and it is entirely about one icon: std::decimal::decimal32, aka 3.2.2 Class decimal32 ✨


✨ SYNOPSIS ✨

first step, obviously, you gotta let it in the door:

#include <decimal>

πŸŽ€ Public Types πŸŽ€

  • typedef float __decfloat32 β€” the one (1) public type in this whole clique. it's a float with a tiny little alias name tag on πŸŽ€

πŸ’… Public Member Functions πŸ’…

okay so this list is LONG and I need you to stay with me, no scrolling away πŸ™ˆ every single one, present and accounted for:

  • decimal32 (__decfloat32 __z) β€” Conforming extension: conversion from scalar decimal type. (this one actually has documentation attached, bestie, she's the special one 🫢)

and then the rest of the constructor crew, all showing up to the same party:

  • decimal32 (decimal128 __d128)
  • decimal32 (decimal64 __d64)
  • decimal32 (double __r)
  • decimal32 (float __r)
  • decimal32 (int __z)
  • decimal32 (long __z)
  • decimal32 (long double __r)
  • decimal32 (long long __z)
  • decimal32 (unsigned int __z)
  • decimal32 (unsigned long __z)
  • decimal32 (unsigned long long __z)
  • __decfloat32 __getval (void) β€” yep, it's the getter. she gets the value πŸ’…
  • void __setval (__decfloat32 __x) β€” and this is the setter. she sets it. balanced. iconic.
  • operator long long () const β€” the conversion operator, doing its one job.
  • decimal32 & operator*= (decimal128 __rhs)
  • decimal32 & operator*= (decimal32 __rhs)
  • decimal32 & operator*= (decimal64 __rhs)
  • decimal32 & operator*= (int __rhs)
  • decimal32 & operator*= (long __rhs)
  • decimal32 & operator*= (long long __rhs)
  • decimal32 & operator*= (unsigned int __rhs)
  • decimal32 & operator*= (unsigned long __rhs)
  • decimal32 & operator*= (unsigned long long __rhs)
  • decimal32 & operator++ () β€” the prefix one, she goes first πŸ’–
  • decimal32 operator++ (int) β€” the postfix one, she takes a lil int napkin with her.
  • decimal32 & operator+= (decimal128 __rhs)
  • decimal32 & operator+= (decimal32 __rhs)
  • decimal32 & operator+= (decimal64 __rhs)
  • decimal32 & operator+= (int __rhs)
  • decimal32 & operator+= (long __rhs)
  • decimal32 & operator+= (long long __rhs)
  • decimal32 & operator+= (unsigned int __rhs)
  • decimal32 & operator+= (unsigned long __rhs)
  • decimal32 & operator+= (unsigned long long __rhs)
  • decimal32 & operator-- () β€” prefix decrement, still first in line πŸ¦‹
  • decimal32 operator-- (int) β€” postfix decrement, still carrying that int.
  • decimal32 & operator-= (decimal128 __rhs)
  • decimal32 & operator-= (decimal32 __rhs)
  • decimal32 & operator-= (decimal64 __rhs)
  • decimal32 & operator-= (int __rhs)
  • decimal32 & operator-= (long __rhs)
  • decimal32 & operator-= (long long __rhs)
  • decimal32 & operator-= (unsigned int __rhs)
  • decimal32 & operator-= (unsigned long __rhs)
  • decimal32 & operator-= (unsigned long long __rhs)
  • decimal32 & operator/= (decimal128 __rhs)
  • decimal32 & operator/= (decimal32 __rhs)
  • decimal32 & operator/= (decimal64 __rhs)
  • decimal32 & operator/= (int __rhs)
  • decimal32 & operator/= (long __rhs)
  • decimal32 & operator/= (long long __rhs)
  • decimal32 & operator/= (unsigned int __rhs)
  • decimal32 & operator/= (unsigned long __rhs)
  • decimal32 & operator/= (unsigned long long __rhs)

like... the way every arithmetic operator got the exact same nine-overload treatment? consistency ate and left no crumbs πŸ‘‘


πŸ’– DETAILED DESCRIPTION πŸ’–

3.2.2 Class decimal32.

that's it. that is the entire detailed description. she said "my work here is done" πŸ’€


🧚 CONSTRUCTOR & DESTRUCTOR DOCUMENTATION 🧚

⭐ std::decimal::decimal32::decimal32 (__decfloat32 __z) [inline] ⭐

Conforming extension: conversion from scalar decimal type.

(the [inline] is right there in the name, bestie β€” don't miss it 🌸)


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. no human author, just a robot doing her little document-generating thing and honestly? slay πŸ€–βœ¨


and that's the whole page, bestie 🫢 this was the std::decimal::decimal32(3) man page, section 3, brought to you by libstdc++ β€” go forth and decimal 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