Go to: Synopsis. Return value. MEL examples.

Synopsis

int floatEq(float $f1, float $f2)

This script checks two float to determine they are equal within 0.01.

Return value

None

Arguments

Variable Name Variable Type Description
$f1floatFirst float value to be compared
$f2floatSecond float value to be compared

MEL examples

	floatEq(5.0, 5.001);
	// Result: 1 //

	floatEq(5.0, 5.1);
	// Result: 0 //