added input for double, changed print for negatives