SetOutputFloat()
From ElectronicWar
| Function information for setOutputFloat() | |
| Function | setOutputFloat() |
| Parameters | setOutputFloat(float) |
| API | Challenge |
| Cost | $N/A |
| Level | N/A |
| CPU Usage | N/A |
| Description | Passes the parameter (a float or a float variable) to the challenge system. This is one of the functions used to end challenges (along with setOutputString() and setOutputInt()) and as such will only appear at the end of a challenge program. |
[edit] Example 1
If the challenge were to output the float 5.5, the script would be:
setOutputFloat(5.5);
[edit] Example 2
If the challenge were to output a float variable, containing the number 5.5, the script would be:
float f = 5.5; setOutputFloat(f);

