Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

get decimal

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
TheMaximumWeasel
Asked:
TheMaximumWeasel
1 Solution
 
RoonaanCommented:
function getDecimal(num) {
    return num - Math.floor(num);
}

-r-
0
 
TheMaximumWeaselAuthor Commented:
thanks

Max
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now