Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Is there a 'POW' function for math?

Author
Message
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Sep 2011 17:49
The docs don't seem to show one.

Warning! May contain Nuts!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Sep 2011 17:53
Yeah you just stick this on a textured plain, and when you punch somebody put the plain over their fist!



WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Sep 2011 17:55
Nice!?!? Cheers. That woke me up...

I'm after 'to the power of'. x = ( y << 16 ) ^ z

Warning! May contain Nuts!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Sep 2011 17:59
Hmmm...

"^" seems to compile... I wasn't expecting that...

Warning! May contain Nuts!
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 5th Sep 2011 18:04 Edited at: 5th Sep 2011 18:07
Quote: ""^" seems to compile... I wasn't expecting that..."


Yea I use that in my terrain functions as well. The "^" thew me for a loop when I saw that as well. But it works.

"Life is like a box of chocolates.. eat it before it melts."
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 6th Sep 2011 00:35
It's quite standard - Excel uses it for example.

Login to post a reply

Server time is: 2026-07-10 17:18:48
Your offset time is: 2026-07-10 17:18:48