in reply to Weird behavior of int()
I want to say that the behavior is similar (and historical) to what atoi/atol do in that they read and convert as much of the string as possible. See for example atoi(3) which mentions the behavior is due to the C standard and should prossibly be replaced with strtol or the like.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|