GetInputFloatCount()
From ElectronicWar
| Function information for getInputFloatCount() | |
| Function | getInputFloatCount() |
| Parameters | None |
| API | Challenge |
| Cost | $0 |
| Level | N/A |
| CPU Usage | 0 |
| Description | Returns an integer representing the initial number of elements in an array of floats provided by the challenge system. This is one of a group of functions used to return challenge data (along with getInputStringCount() and getInputIntCount()). |
[edit] Example
If the challenge input was an array containing (3.14, 2.34, 1.1), and you needed to output the number of elements in the array, you'd use the following script:
int i = getInputFloatCount(); setOutputInt(i);
The output from this script would be 3.

