significand(3)
π significand(3) π
okay bestie, welcome to the manual page for significand, significandf, and significandl β direct from the weird little corner of libm where the IEEE 754 girlies hang out. it's <italic>Library Functions Manual</italic> energy and honestly? iconic.
β¨ NAME β¨
significand, significandf, significandl β get the mantissa of a floating-point number π
π LIBRARY π
Math library β that's libm, and you link it with -lm (yes you have to, no it's not optional, i don't make the rules π
)
πΈ SYNOPSIS πΈ
#include <math.h>
double significand(double x);
float significandf(float x);
long double significandl(long double x);
π¦ Feature Test Macro Requirements for glibc (peep feature_test_macros(7)) π¦
significand(), significandf(), significandl():
/* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
so like. if you're on modern glibc you just need _DEFAULT_SOURCE, but if you're on the older stuff you're out here juggling _BSD_SOURCE or _SVID_SOURCE. the vibes are ancient but she works π
π DESCRIPTION π
these functions hand you the mantissa of x, scaled all cute into the range [1, FLT_RADIX) π«Ά
they are literally equivalent to:
scalb(x, (double) -ilogb(x))
and ngl, this function exists mainly for use in certain standardized tests for IEEE 754 conformance. she's not the main character of your app, she's the main character of the test suite β
π ATTRIBUTES π
for an explanation of the terms used here, go read attributes(7), k? π
- Interface:</bold>
significand(),significandf(),significandl()β Attribute: Thread safety β Value:MT-Safeπ₯
so yeah, thread safe, no cap, you can call her from anywhere at once. periodt.
π STANDARDS π
None. π that's it, that's the whole standard.
significand() : BSD. (she's a BSD girlie, always has been π§)
π HISTORY π
significand() : BSD. yeah. same energy as above. she's been around the BSD block since forever π
π SEE ALSO π
okay bestie that's the whole page!! this was Linux man-pages 6.20, dated 2026-02-08, and she's the significand(3) page β go scale something, drink water, and remember: your mantissa is always valid πβ¨ππ¦
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-1.0-or-later
- Copyright 2002, Walter Harms <walter.harms@informatik.uni-oldenburg.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms