pow10(3)

โœจ pow10(3) โœจ

okay bestie, welcome to the pow10 page, a certified member of the Linux Library Functions Manual family ๐Ÿ’– this one is short but it's giving "came back from the dead only to get ghosted" energy, and honestly we're obsessed ๐Ÿ˜ญ

๐ŸŒธ NAME ๐ŸŒธ

pow10, pow10f, pow10l โ€” base-10 power functions, no cap ๐Ÿ’…

๐ŸŽ€ LIBRARY ๐ŸŽ€

Math library (libm, -lm) ๐Ÿงฎโœจ

psst โ€” if you link this without -lm, the linker is gonna act brand new. just saying ๐Ÿซถ

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

#define _GNU_SOURCE         /* See feature_test_macros(7) */
#include <math.h>

double pow10(double x);
float pow10f(float x);
long double pow10l(long double x);

like yes boo, you have to define _GNU_SOURCE before you pull in <math.h> โ€” that macro is the little backstage pass that unlocks these bad boys ๐Ÿ‘‘

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

So what do they even do? These functions return the value of 10 raised to the power x. That's it. That's the whole thing. ten to the x. iconic behavior honestly ๐ŸŒˆ

Note well, bestie, and i mean it: these functions perform exactly the same task as the functions described in exp10(3), with one difference โ€” those latter functions are now standardized in TS 18661-4:2015. So likeโ€ฆ use those ones instead of the ones on this page. no shade to pow10, but exp10 is the main character now ๐Ÿ’…

๐Ÿ‘‘ ATTRIBUTES ๐Ÿ‘‘

For an explanation of the terms used in this section, see attributes(7) ๐Ÿ“š

  • pow10(), pow10f(), pow10l() โ€” Attribute: Thread safety; Value: MT-Safe ๐Ÿงตโœ…

so yeah, safe to call from multiple threads, she's fine, she's chill, she's MT-Safe ๐Ÿซถ

โญ STANDARDS โญ

GNU. That's the standard. Just GNU. periodt ๐Ÿ’…

๐Ÿ“ VERSIONS ๐Ÿ“

  • Landed in glibc 2.1 ๐ŸŒฑ
  • Removed in glibc 2.27 ๐Ÿ’€

yeah bestie she got deleted. if you're on a modern glibc and wondering why the compiler is yelling at youโ€ฆ that's why ๐Ÿ˜ญ please use exp10(3), she still lives here.

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

  • exp10(3) โ€” the glow-up version, use this one
  • pow(3) โ€” the general-purpose icon

and that's the whole page, babe ๐ŸŽ€โœจ this was Linux man-pages 6.20, dated 2026-02-08, and it's the <lavender>pow10(3)</lavender> page โ€” love her, mourned her, moving on to exp10(3) fr fr ๐Ÿ’–๐Ÿฆ‹๐Ÿ‘‘

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