Log in array calculator gives bad error for 0 value
When you run the array calculator and the expression involves a log10
function that takes the log of 0, you get an error that says “Trying to take a log10 of a negative value”. Granted, taking log of 0 is also invalid, but the error is confusing when you know that the value is not negative.
To replicate, do the following.
- Create any source.
- Create an Array Calculator
- Set the expression to
log10(0)
- Turn off the
Replace Invalid Results
option (advanced) - Hit Apply