@Leppy :
Maybe you didn't get SIGABRT if the '.' is ending the input.
What about that ?
2
12
12.0
Did you get SIGABRT ?
Is there a '.' in input ?
My python code read T the number of test case,
then T (full) lines, and I get NZEC with
assert '.' not in line
So there were a '.' in input !
According to your test, I think it could be only possible with a (almost) final point ; like ending with 12.0 or 12.
Mitch did some tests too with C, I really trust in his knowledge, I'm sure he will find the real mystery and the best answer for that strange thing.