Solved

get decimal

Posted on 2006-07-21
2
192 Views
Last Modified: 2008-02-01
so if I have 5.2 it will return 2 or if I have 5 it will return 0 ect. I think there is a command in flash but if not how could I make a function to do it.

Max
0
Comment
Question by:TheMaximumWeasel
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 17157375
function getDecimal(num) {
    return num - Math.floor(num);
}

-r-
0
 
LVL 4

Author Comment

by:TheMaximumWeasel
ID: 17157888
thanks

Max
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error 2032 in all the browser 6 2,838
Action Script commands 3 219
Flash Slides/Presnetation 4 74
Running Mp4 or Flash Video 1 115
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question