]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/exponentiation.qc
Does this fix it?
[xonotic/gmqcc.git] / tests / exponentiation.qc
index f3ab7d3c4370b041b8e7e4c1a59370a1d9878b9d..5b8f24e155b776f570202d5d2789ead95ba71bf9 100644 (file)
@@ -8,4 +8,7 @@ void main() {
 
     hundy -= 90; // 100-90 = 10
     print(ftos(hundy ** 2), "\n"); // prints: 100
+
+    hundy = 10.0f;
+    print(ftos(__builtin_exp(hundy)), "\n"); // prints: 22026.5
 }