fixed bug in new isdec() function so it fails for negative numbers