I think it's better to treat non-numerics as zero.  It's the right thing in this context, I think.  Any other opinions?

Will fix the sscanf issue, thanks.