Mel - Maya Embedded Language

float

A float variable is not too different than an int. The main difference is that you can now use decimal points, also known as real numbers. Our default value is 0.0

float $defalautfloat;
float $myfloat1 = 1.123;
float $myfloat2 = -1.123;
float $myfloat3 = .123;
Below is an example of a random float value
float $myRandomFloat = rand(0,1000);
print $myRandomFloat;