Go to: Synopsis. Return value. MEL examples.
float floatArrayContains(float $item, float[] $list)
None
Variable Name | Variable Type | Description |
---|---|---|
$item | float | The float item to search for in the float array. |
$list | float[] | A list of float values. |
float $list[] = { 1., 2., 3. }; // ,Result:, 1 2 3 // int $found = floatArrayContains( 1.0, $list ); // Result: 1 // $found = floatArrayContains( 2.0, $list ); // Result: 1 // $found = floatArrayContains( 0.0, $list ); // Result: 0 //