kmj
02-13-2001, 06:53 PM
Hey, can someone tell me how to do a log base 10 in perl?
|
Click to See Complete Forum and Search --> : log in perl kmj 02-13-2001, 06:53 PM Hey, can someone tell me how to do a log base 10 in perl? jemfinch 02-14-2001, 12:22 AM log (base n) X = ln X / ln n Jeremy YaRness 02-14-2001, 09:11 AM the perlfunc man page even gives you a subroutine: sub log10 { my $n = shift; return log($n)/log(10); } kmj 02-14-2001, 11:36 AM Ah, groovin'. thanks. Been a while since calculus. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |