Write a function `sign_of_number(n)` that takes a single number `n` (integer or float) and returns:
- `-1` if `n` is negative,
- `0` if `n` is zero,
- `1` if `n` is positive.
Do not use any imports. The function should handle both integers and floats, including negative zero if you encounter it (consider `-0.0` as zero).
Constraints
Input can be any integer or float. The function must return an integer: one of -1, 0, or 1.