Krucialist
05-14-2008, 01:45 AM
I am attempting to create a function that will simply check the elements of an array and make sure there are no negative numbers inside the array.
Ideally, I was trying to design this in a manner that would replace any negative numbers that were found with a zero. Im not even sure if that is possible, I just kinda assumed it was. If I couldnt do that then I wanted to at least send an alert that would notify a user that a negative value was found.
Let me know if this isnt a clear enough explanation of what I am trying to do.
Any help with this would be greatly appreciated.
Ideally, I was trying to design this in a manner that would replace any negative numbers that were found with a zero. Im not even sure if that is possible, I just kinda assumed it was. If I couldnt do that then I wanted to at least send an alert that would notify a user that a negative value was found.
Let me know if this isnt a clear enough explanation of what I am trying to do.
Any help with this would be greatly appreciated.