float myFloat; double myDouble; void Start() { myFloat = (float)myDouble; //give the value of myDouble to myFloat }