http://jsfiddle.net/SebastianBlade/krbjt745/ When input value is empty, `num` will turn to string type. Is it a feature? I think number data should be 0 when input value is empty...