How to invert a float range of 0.0-1.0 in unity

Hi everyone, I would like to ask: how to invert a float value? I need to invert a number so that 0.0 = 1.0, or 1.0 = 0.0

a simple -value wont help, and the inverse operator doesn’t play with floats very well! If you have anything good, please help me!

invertedValue = 1.0 - value;