Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Numbers to two decimal places |
From: | Nathan Dicken |
Date: | Mon, 22 May 2000 13:40:36 +0100 |
Hi Kevin,
You can do this by using the subString function...
Set Variable: "myVar" = "12.3456789"
Set Variable: "myVar" = subString(myVar,1,5)
This assumes that you already have your decimal in place and that you have
two digits before and two after. If you have a different number of digits
(based on whatever number you start with) you can form a loop to search for
the decimal and perform the subString function from there. Hope that
helps...
Nathan
>Can any one point me in the direction of a tutorial or simply help me out
>here.
>My problem is this. I need to convert numbers into two decimal places eg.
>
>12.3456789
>
>can I change it using action script so that it reads
>
>12.34
>
>I think there was a similar thread a while ago, any help would be gratefully
>received.
>Thanks in advance,
>Kevin
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>World Animation Celebration - Big Internet Animation Pow Wow Discount Offer
>
>Register before May 25 mention flasher and save 25%!! www.wacfest.com
>
>Be discovered, get a job or have your web series picked up. A big talent
>search for Shockwave
>and Flash animators is happening May 30-June 4 in Hollywood. Featuring
>Rob Burgess, Matt
>Groening, Brad Bird and more. www.wacfest.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
World Animation Celebration - Big Internet Animation Pow Wow Discount Offer
Register before May 25 mention flasher and save 25%!! www.wacfest.com
Be discovered, get a job or have your web series picked up. A big talent search for Shockwave
and Flash animators is happening May 30-June 4 in Hollywood. Featuring Rob Burgess, Matt
Groening, Brad Bird and more. www.wacfest.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Numbers to two decimal places, Kevin Newman
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]