Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Scientific Notation Throws Off Results.

by fruiture (Curate)
on Jan 14, 2004 at 15:53 UTC ( #321279=note: print w/replies, xml ) Need Help??

in reply to Scientific Notation Throws Off Results.

bl0rf said it: don't stringify things that you don't actually need as strings. The "number of digits" needs no stringification, it's a logarithm:

sub number_of_digits { my $number = shift; my $base = shift || 10; 1 + int( log($number) / log($base) ) }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://321279]
[ambrus]: Corion: pre-fork before creating any threads
[ambrus]: it's good practice anyway, even if Linux tolerates forking after creating threads (tolerates, as in, the fork works, but other threads are dead which can lead to interesting deadlocks)
[marto]: could be worse, could be dust
[ambrus]: Corion: if you're forking from perl, then schmorp has a module that helps this prefork magic

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2017-10-19 14:48 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (253 votes). Check out past polls.