A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: decimals

  1. #1
    Member
    Join Date
    Jul 2000
    Posts
    50

    Smile

    is there a function to take a decimal number and make it a whole number? I am making a percentage updater and only want to display the whole number. The original number is less than 1 and I multiply it by 11 to get a whole number but when I use a dynamic text box with the variable, it prints out decimals.

  2. #2
    Member
    Join Date
    Mar 2001
    Posts
    34
    Try using Math.round(number) or Math.floor() or Math.ceiling.

  3. #3
    Member
    Join Date
    Jul 2000
    Posts
    50
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center