rf communication - send variable

if I wanted to send a variable, such as temperature (temp) of type float, how should I do?