X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=tests%2Fexponentiation.qc;h=5b8f24e155b776f570202d5d2789ead95ba71bf9;hb=d8b3faa8711d172ee66f8c6e30f154dc7de4646d;hp=f3ab7d3c4370b041b8e7e4c1a59370a1d9878b9d;hpb=12340a6bd077a5ff3454fe48913cfadb661f52cc;p=xonotic%2Fgmqcc.git diff --git a/tests/exponentiation.qc b/tests/exponentiation.qc index f3ab7d3..5b8f24e 100644 --- a/tests/exponentiation.qc +++ b/tests/exponentiation.qc @@ -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 }