Implement signum().