They are not functions, they are variables/arrays. You are correct in that they store information.
A Float holds a floating point decimal: 3.146534
A bool holds true or false
It depends on what you need to save, obviously:
For the bool, you could store whether or not a player is connected, is a bot, etc
For the Float, you could store any numerical value that is a decimal (non-integer)