LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


  #1  
Old 07-23-2002, 03:21 PM
dv8's Avatar
dv8 dv8 is offline

Admin Mod
 
Join Date: Mar 2001
Posts: 2,053
Rep Power: 15
dv8 is on a distinguished road
Trimming the... Number?

If I have a value "-2.57282770" which is a percentage of change how can I round up to the nearest tenths?

"-2.57282770" to "-2.57%"
  #2  
Old 07-23-2002, 04:09 PM
swoop's Avatar
swoop swoop is offline

swoopy HyperModerator
 
Join Date: Jun 2001
Location: England
Posts: 1,562
Rep Power: 13
swoop is on a distinguished road
*100
int
/100

then add the %. :-)

swoop
  #3  
Old 07-23-2002, 04:34 PM
dv8's Avatar
dv8 dv8 is offline

Admin Mod
 
Join Date: Mar 2001
Posts: 2,053
Rep Power: 15
dv8 is on a distinguished road
... I need to stop and sleep...
My brain isn't working today... I'm in a slump... thanks brain number 2.... err I mean Swoop
  #4  
Old 07-24-2002, 07:49 AM
swoop's Avatar
swoop swoop is offline

swoopy HyperModerator
 
Join Date: Jun 2001
Location: England
Posts: 1,562
Rep Power: 13
swoop is on a distinguished road
He he, don't worry - happens to me all the time!
when I was trying to do something similar for a timer a little while ago my boss told me there is a float command in perl which would do that a lot simpler. I have been hopeing since then that they would add it into flash!

swoop
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Math functions for variables Smirgu Flash 8 7 05-24-2009 05:50 AM
Actionscript not incrementing number vertmonkee Newbies 1 07-18-2008 01:44 PM
Converting a string into a number var Rantanplan Actionscript 2.0 3 03-23-2006 03:14 PM
convert obj to number dumbmonk Flash MX ActionScript 1 02-01-2004 07:12 PM
typeof... string to number dv8 Flash 5 Actionscript 5 10-16-2001 08:55 AM




All times are GMT. The time now is 12:11 PM.