![]() |
Square root
Simple question, is there square root (built-in) in gscript?
|
x^.5 is the same thing.
|
Quote:
|
Quote:
xP |
I thought that sqrt(val) worked as well? Or am I soo 5 years ago or something
|
Quote:
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Massokre's Interesting Fact of the Day:
The ENIAC, a computer that was used in the design of the hydrogen bomb, had a divider/square-rooter built into it's hardware. It could perform 40 divides per second or 3 square roots per second. |
Quote:
Nice, now Stefan can find this computer and connect it too graal? :D Did you make the bomb? :) |
Square root is done by x^0.5, which is actually internally converted into a sqrt() C call for best speed
|
Quote:
|
*wants his xor operator back* :-(
I'd even be willing to write the program that would convert everyone's nw files and scripts from a^b to pow(a,b), a^=b to a=pow(a,b) and, a xor b to a^b |
Quote:
PHP Code:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
I have tried it on binary's, but I didn't quite understand it all :) |
Quote:
boolean xor boolean : one or the other but not both int xor int : see my bitwise operators tutorial |
| All times are GMT +2. The time now is 12:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.