c# how to take from a float

C#
public float NumberFloat = 10f;
public float TakeFloat = 10f;

// To take a float from another float:

NumberFloat = NumberFloat - TakeFloat;

// To take a number from a float:

NumberFloat = NumberFloat - 10f;

//Have a nice day, thanks for reading.
Source

Also in C#: