Menu

#15 convertInteger doesn't evaluate to null for empty string

open
nobody
None
5
2012-04-25
2012-04-25
No

If is sometimes necessary to distinguish whether there is empty string or 0 value in the input.
The behavior should be following:
-when there is empty string in the input, the output value from convertInteger should be null
-when there is 0 in the input, the value should be 0

But the value is always 0.

Discussion


Log in to post a comment.