mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
12 lines
259 B
C++
12 lines
259 B
C++
|
float pow(float x, float y) {
|
||
|
return __builtin_pow(x, y);
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
float hundy = pow(10, 2); // 10^2 == 100
|
||
|
print(ftos(hundy), "\n"); // prints: 100
|
||
|
|
||
|
hundy -= 90; // 100-90 = 10
|
||
|
print(ftos(hundy ** 2), "\n"); // prints: 100
|
||
|
}
|