• Thorkil Johansen (7/25/2013)


    Someone said: Looks like 123.4 is not an integer, so -1 should be returned.

    Yes, that's right

    So if the string were xyz-1-2.3-2 what's the required answer?

    2, because -2 are the last two characters? or -1 because -1-2.3-2 isn't an integer?

    Tom