Zero or Positive
Posted: Tue Apr 09, 2013 9:41 am
There should be some simple method or direct function available for sure, which Iam not able to find it readily. I can always go with If-Then-Else. But wanted to check, for other optimized options.
If there is any negative number, I expect 0.
Any positive can be send to the output directly.
Eg:
-2 --> 0
3 --> 3
0 --> 0
Thanks!
If there is any negative number, I expect 0.
Any positive can be send to the output directly.
Eg:
-2 --> 0
3 --> 3
0 --> 0
Thanks!