go ahead... be a heretic | |
PerlMonks |
Re: Use of uninitialized valueby BillKSmith (Monsignor) |
on Aug 11, 2013 at 13:29 UTC ( [id://1049004]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|