scalbln(3)

scalbln3

Adjust exponent

Part of scalbn(3).

Usage

#include <math.h>

double

scalbln(double x, long n);

float

scalblnf(float x, long n);

long double

scalblnl(long double x, long n);

double

scalbn(double x, int n);

float

scalbnf(float x, int n);

long double

scalbnl(long double x, int n);

Library

Math Library (libm, -lm)

Overview

These routines return x∗(2**n) computed by exponent manipulation.

Releases

52 releases since FreeBSD 5.3-RELEASE; the text changed 37 times.

  1. 5.3
  2. 5.4–5.5
  3. 6.0
  4. 6.1–6.2
  5. 6.3
  6. 6.4
  7. 7.0
  8. 7.1
  9. 7.2
  10. 7.3
  11. 7.4
  12. 8.0
  13. 8.1
  14. 8.2
  15. 8.3
  16. 8.4
  17. 9.0
  18. 9.1
  19. 9.2
  20. 9.3
  21. 10.0
  22. 10.1
  23. 10.2
  24. 10.3
  25. 10.4
  26. 11.0
  27. 11.1
  28. 11.2
  29. 11.3
  30. 11.4
  31. 12.0
  32. 12.1
  33. 12.2
  34. 12.3
  35. 12.4
  36. 13.0–13.2
  37. 13.3–14.5
  38. 15.0–16.0

Standards

These routines conform to ISO/IEC 9899:1999 (“ISO C99”), and they implement the Scalb function recommended by IEEE Std 754-1985.

History

The scalbn() and scalbnf() functions appeared in 4.3BSD and FreeBSD 2.0, respectively. The scalbln() and scalblnf() functions first appeared in FreeBSD 5.3, and scalblnl() and scalbln() in FreeBSD 6.0.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.