Sending float variable in I2C?

Hi. I am working at a projet where I am working with 2 atmegas working together and one of them is just sending information to another.

the. Problem is that it send only bytes and. I need to send my myFloatVar to the slave board.

Does anybody know how to send a float value and retrieve the value on slave board?

Any help will be apreciated.

Tks

hi. Thank you for your amswer but that examble just semd bytes..

My question is how to semd float variables...

Tks anyway

A float is four bytes. You can send four bytes using I2C

check Reply#14 of this post:
http://forum.arduino.cc/index.php?topic=45445.0