User Tag List

Results 1 to 6 of 6

Thread: Removing decimals from a value?

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Removing decimals from a value?

    How can I remove decimals from a value?
    Please help :3

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing decimals from a value?

    [:"blue"]floor(value)
    [/]
    using the expression evaluator <img src="/center/images/graemlins/wink.gif" alt="" />

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing decimals from a value?

    I thought you did int(value)?

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing decimals from a value?

    Thanks alot!

  5. #5
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing decimals from a value?

    int(value) removes the decimal
    floor(value) rounds the decimal down

    ...both the same really <img src="/center/images/graemlins/smile.gif" alt="" />

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing decimals from a value?

    int(value), floor(value) - rounds down
    round(value) - rounds to closest integer
    ceil(value) - rounds up

Similar Threads

  1. Removing decimals
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd March 2012, 08:11 PM
  2. Removing object 'lag'
    By Anders in forum Extension Developers Lobby
    Replies: 11
    Last Post: 14th April 2007, 03:26 PM
  3. Removing Reg' Codes
    By Dudeofthed in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 2nd November 2006, 06:42 AM

Posting Permissions

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