The Wayback Machine - https://web.archive.org/web/20160108070016/http://perldoc.perl.org:80/functions/log.html

Perl version

Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

log

Perl 5 version 22.0 documentation

Please note: Many features of this site require JavaScript. You appear to have JavaScript disabled, or are running a non-JavaScript capable web browser.

To get the best experience, please enable JavaScript or download a modern web browser such as Internet Explorer 8, Firefox, Safari, or Google Chrome.

Recently read

log

  • log EXPR

  • log

    Returns the natural logarithm (base e) of EXPR. If EXPR is omitted, returns the log of $_ . To get the log of another base, use basic algebra: The base-N log of a number is equal to the natural log of that number divided by the natural log of N. For example:

    1. sub log10 {
    2. my $n = shift;
    3. return log($n)/log(10);
    4. }

    See also exp for the inverse operation.

 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.