Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Use of uninitialized value

by BillKSmith (Vicar)
on Aug 11, 2013 at 13:29 UTC ( #1049004=note: print w/replies, xml ) Need Help??


in reply to Use of uninitialized value

Is there a reason you cannot use BrowserUK's suggestion from your previous post? If you can assume that the zero is just the roundoff of a small number, replace the zero with a any small number before you take the log. If you believe that the zero is exact and that its log has no meaning, use my suggestion. Store HUGE_VAL as the value of the log. It will fail if you try to use it, but you will know for sure where it came from.
Bill

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049004]
help
Chatterbox?
[talexb]: Used all my votes during that meeting .. been a while since I've done that. Now, back to work. Good localtime, monks!
[Corion]: talexb: You enjoyed the All Hands meeting in the pool?!
[Corion]: I understand "surfing" in the pool ;)
[talexb]: Corion I admired the pool .. I wasn't .. soaking in it. ;)
[talexb]: Plus, I've been awy from PM for about three weeks .. needed a bit of catch-up time.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2017-07-20 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (304 votes). Check out past polls.