NWN2 Toolset
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
Maths: Powers functions
NWN2 Toolset Forum Index
->
NWN2 Scripting Help
View previous topic
::
View next topic
Author
Message
Malice
Joined: 17 Oct 2007
Posts: 9
Location: Luton UK
Posted: Tue Jan 08, 2008 12:01 am
Post subject: Maths: Powers functions
I am trying to figure the best (i.e. most efficient) way to get the following result:
for example
nInt=0 then x=1
iInt =1 then x=2
nInt=2 then x=4
nInt=3 then x=8
....
nInt=n then x= 2^n
Does this work?
nInt^=2;
or is it only possible with
nInt=(2^nInt);
_________________
------------------
PJ
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
NWN2 Toolset Forum Index
->
NWN2 Scripting Help
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Neverwinter Nights Toolset
----------------
NWN2 Toolset
NWN2 Scripting Help
NWN2 Script Vault
Neverwinter Nights 2
----------------
Neverwinter Nights 2 The Game
General
----------------
General Board
Dungeons & Dragons
The Toolset Web site
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001 phpBB Group
Chronicles phpBB2 theme by
Jakob Persson
(
http://www.eddingschronicles.com
). Stone textures by
Patty Herford
.