Check out example codes for "unity transformer double en float". It will help you in understanding the concepts better.

Code Example 1

float myFloat;
double myDouble;

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

Learn ReactJs, React Native from akashmittal.com