# 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:

`    sub log10 {        my \$n = shift;        return log(\$n)/log(10);    }`
{"ft_lang_label":"__label__en","ft_lang_prob":0.78455913,"math_prob":0.9556066,"size":341,"snap":"2020-10-2020-16","text_gpt3_token_len":89,"char_repetition_ratio":0.17210683,"word_repetition_ratio":0.0,"special_character_ratio":0.24633431,"punctuation_ratio":0.118421055,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99396604,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-20T13:59:55Z\",\"WARC-Record-ID\":\"<urn:uuid:518a33a0-e82b-4a1b-9750-144ff30ab773>\",\"Content-Length\":\"23362\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a808e99c-94a4-4024-b9f6-609ae9481fd2>\",\"WARC-Concurrent-To\":\"<urn:uuid:8148cc18-22e0-42d0-9183-7aea613c9161>\",\"WARC-IP-Address\":\"151.101.202.217\",\"WARC-Target-URI\":\"https://perldoc.perl.org/5.22.2/functions/log.html\",\"WARC-Payload-Digest\":\"sha1:DMZ4ALS3JCTFNGTWUTV4VBO74GJE3MMN\",\"WARC-Block-Digest\":\"sha1:LKFGSKGYQRQDULTHVL65UNJS6CIL6VMT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875144979.91_warc_CC-MAIN-20200220131529-20200220161529-00534.warc.gz\"}"}