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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms