Loading
  Password:
  Lost password?  
LogoutLOGOUT
Join as a MemberJoin as a Member
 
FlashMove Live Support



Go Back   FlashMove Forums > Development > Archives > Flash 5 Actionscript

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-13-2001, 04:51 AM
MixMatch's Avatar
MixMatch MixMatch is offline

Hyper Moderator
 
Join Date: Aug 2001
Location: Heidelberg, Germany
Posts: 1,789
MixMatch is on a distinguished road
Angry Number to Negative power

Hey, every time I try to raise a negative number to any power in flash, I get this value

-1.#IND

For example,

Math.pow (-10, 3);
or
Math.pow ((-10), 3);

Then, when I try to trace it, I get NaN...

whats the best workaround and I can't use the absolute value in this case... It must give the value you would get on the calculator... in this case, -1000
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TextFormat - Negative Leading Scottae Flash MX 3 08-31-2005 06:52 PM
Looping Negative Number Produces Bad Math dv8 Advanced Flash 5 05-09-2004 04:37 PM
convert obj to number dumbmonk Flash MX ActionScript 1 02-01-2004 07:12 PM
How to calculate a negative random number midjdji Flash 5 Actionscript 15 10-21-2001 06:01 PM
typeof... string to number dv8 Flash 5 Actionscript 5 10-16-2001 08:55 AM



All times are GMT. The time now is 08:28 PM.




Powered by vBulletin version 3.5