Solved

get decimal

Posted on 2006-07-21
2
193 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

789 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