Old 12-06-2003, 07:50   #1 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,524
Too many decimals

Hello all,

I've got a dynamic text field in Flash that displays the results of a variable equation, the problem is it shows the results to about 5 decimal places!

I'm sure this is very simple to sort out, but I've forgotten how to make sure that the result (in the text field) is rounded up to a whole number.

Cheers, James
  Reply With Quote
Old 12-06-2003, 08:36   #2 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,233
it's not to do with your text field not being big/long enough by any chance? Physically, that is..
__________________
...
  Reply With Quote
Old 12-06-2003, 08:43   #3 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,524
well it kind of works (shortening the text field) but it doesn't work when the numbers change from 1, to 2 or 3 figured numbers - seems a bit cowboy!
Thanks though

Last edited by sleepingfish : 12-06-2003 at 08:48.
  Reply With Quote
Old 12-06-2003, 08:46   #4 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,233
cowboy way is my way in Flash... till I learn it properly
__________________
...
  Reply With Quote
Old 12-06-2003, 08:54   #5 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,628
There is a way to do it properly, but I can't remember how. Keep looking..
  Reply With Quote
Old 12-06-2003, 08:58   #6 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,628
Does no one ever use google?
Look at the first link, you lazy bastards.

http://www.google.co.uk/search?q=fla...e+Search&meta=

  Reply With Quote
Old 12-06-2003, 09:12   #7 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,524

AHA!

Cheers Stickman int( number or equation )

sorted
  Reply With Quote
Reply



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

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8