www.delorie.com/djgpp/doc/libc/libc_543.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

log10

Syntax

 
#include <math.h>

double log10(double x);

Description

This function computes the base-10 logarithm of x.

Return Value

The logarithm base 10 of x. If x is zero, a negative infinity is returned and errno is set to ERANGE. If x is negative or +Inf or a NaN, the return value is NaN and errno is set to EDOM.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004