Go to: Synopsis. Return value. MEL examples.
 
int floatArrayCount(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.0, 2.5, 3.0, 2.5, 2.5 };
  // Result: 1 2.5 3 2.5 2.5 // 
  int $count = floatArrayCount( 1.0, $list );
  // Result: 1 //
  $count = floatArrayCount( 2.5, $list );
  // Result: 3 //
  $count = floatArrayCount( 4.0, $list );
  // Result: 0 //