Go to: Synopsis. Return value. MEL examples.
int equivalent(float $a, float $b)
None
Variable Name | Variable Type | Description |
---|---|---|
$a | float | First value to compare |
$b | float | Value to compare with |
tolerance -q -l; // Result : 0.001 // equivalent(0.0, 0.0005); // Result : 1 // equivalent(0.0, 0.005); // Result : 0 //