A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Getting rid of decimal places in variables?

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    28

    Post

    Hi

    Is there a way to get rid of the decimal places in a flash variable? I tried using Int(), but that caused the count to stay at zero. I am using Eval() right now, and it wipes most of the decimal places to the hundreths place. But I need whole numbers. I knew I should have paid more attention in algebra class. Its hard to explain, but if you would like to take a look: http://www.right-brain.f2s.com/vote.htm

    Any help would be GREATLY appreciated.
    Thanks,
    Jaime


    ------------------

  2. #2
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    Post

    Hay Toony, use Substring (string,0,2) option. No math for now he he he he
    Mad-Sci

  3. #3
    Junior Member
    Join Date
    Apr 2000
    Posts
    28

    Post

    Thanks so much Mad-Sci for all of the help!
    Check it out: http://www.right-brain.f2s.com/vote.htm

    Toony

  4. #4
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    Post

    much better
    mad-sci

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