cabs(3)

✨ cabs β€” bestie edition ✨

okay so real talk, welcome to cabs(3), the manual page for cabs, cabsf, and cabsl β€” aka absolute value of a complex number. yes the whole squad is here πŸ’–


🫢 NAME

cabs, cabsf, cabsl β€” absolute value of a complex number. that's it, that's the job. iconic behavior honestly.

πŸ“š LIBRARY

Math library (libm, -lm). so like, you gotta link that bad boy in or nothing happens, no cap πŸ”₯

🌸 SYNOPSIS

#include <complex.h>

double cabs(double complex z);
float cabsf(float complex z);
long double cabsl(long double complex z);

three sisters, three return types, one vibe πŸ’…

πŸ’œ DESCRIPTION

These functions return the absolute value of the complex number z. The result is a real number.

like… you feed it a complex number and it hands you back a plain real one. glow-up moment πŸ¦‹

πŸŽ€ ATTRIBUTES

okay so for the whole explanation of what these terms even mean, go peek at attributes(7). putting the table here as bullets because we're cute like that:

  • Interface: cabs(), cabsf(), cabsl()
  • Attribute: Thread safety
  • Value: MT-Safe

translation: thread-safe besties, you're free to run wild, periodt πŸ‘‘

⭐ STANDARDS

C11, POSIX.1-2008. certified, standards-approved, no notes 😌

🌈 HISTORY

glibc 2.1. C99, POSIX.1-2001.

so she's been around a minute. a legend from day one fr fr πŸ‘‘

🧚 NOTES

The function is actually an alias for hypot(a, b) (or, equivalently, sqrt(a*a + b*b)).

not me finding out cabs is literally just hypot in a trench coat πŸ’€ keep that in your pocket, it's giving iykyk

πŸ“ SEE ALSO


and that's the whole page bestie, literally ate and left no crumbs πŸ’…

this was Linux man-pages 6.20, dated 2026-02-08 β€” catch you in the group chat, mwah 🫢✨

πŸ“¦ 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