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 ๐ฅ
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
- Copyright 2004, Andries E. Brouwer <aeb@cwi.nl>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms