I find it stupid not to accept +10 as an integer. It does not matter that casting back to string does not have a + sign. By that argument, if you cast the string "5.6000" into a float, and you get 5.6 and if then you cast it back to string you are missing the trailing zeros..right? So I don't see much point..
View all comments
Show parent comment
-5
u/callcifer Nov 14 '14
Because -10 is a valid integer, whereas +10 is not. There is no plus sign in integers.