fixed negative number input

changed atodw on atol