sign - return -1, 0 or 1 depending on sign of value (takes double, returns int)