How to write text float ?
Not 100% sure of your question here, but are you needing:
text.text = speed;
Not work
text.text = speed.ToString();
Thx , its work