Best/easy way for invert a float

Isn’t 0 - X functionally the same as X * -1?