User Tag List

Results 1 to 3 of 3

Thread: Counters Rounding Down

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Counters Rounding Down

    In one of my applications I have counters that are supposed to do some mathematical equations to get a number, but the number is always rounded down. Is there a reason that there are no decimal places shown? Thanks for the help.

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counters Rounding Down

    set counter to: (100 + 0.0) * 0.3

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Counters Rounding Down

    Yes, counters always do integer calculations (rounds the numbers)
    You just have to put in a decimal into one of your constants or add 0.0 to one of the values. That forces MMF2 to do floating point calculations.

Similar Threads

  1. Rounding Down Counters
    By etrose in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2011, 09:41 PM
  2. Rounding Down
    By etrose in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th November 2011, 11:32 AM
  3. Rounding Values up or down
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th June 2008, 07:11 PM
  4. Rounding up/down
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th June 2007, 11:43 AM
  5. Rounding numbers
    By The_Alee in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th September 2006, 09:48 PM

Posting Permissions

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