Up |
Retrieve if a string is a negative or positive number. Strings must be numbers otherwise nil will be returned.
fun [S] I
Return : I 1 if negative, 0 if positive or nil if error
fun main ()=
_showconsole;
_fooS _scienceStatisticStringIsNegative "2136501"; // 0
_fooS _scienceStatisticStringIsNegative "-520258"; // 1
_fooS _scienceStatisticStringIsNegative "21A6501"; // nil (A)
0;;