Does not work for negative numbers