User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: 1.5 on a counter object

  1. #11
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 1.5 on a counter object

    Quote Originally Posted by Robin_Manager
    I am doing this

    Val(Edittext$( "Force" ))/Val(Edittext$( "Acceleration" ))*1.0

    And it comes out as 0 when the force value is 10 and the acc = 100
    you need to put the *1.0 in parentheses with one of the Val() expressions (actually, you really only need to use the parenthesis with the second Val() but i find expressions easier to read when i don't even have to think about 'implied' order of operations)

    right now, MMF is doing the division before the multiplication (i think it always does division before multiplication), so while you still get a float in the end, you really need that float BEFORE you divide

  2. #12
    No Products Registered

    Join Date
    Jul 2008
    Location
    Isle of wight, UK
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 1.5 on a counter object

    Thanks for that help,
    Here is another problem ( I am really sorry about asking so many questions)

    Val(Edittext$( "Force" ))*1.0/Val(Edittext$( "Mass" ))
    Force = 0.25
    Mass = 0.25
    Answer = 1
    Actual answer 0.625

    Whats going on?

  3. #13
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 1.5 on a counter object

    0.25 / 0.25 is 1, not 0.625...

  4. #14
    No Products Registered

    Join Date
    Jul 2008
    Location
    Isle of wight, UK
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 1.5 on a counter object

    Oh dear god, it was right

  5. #15
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 1.5 on a counter object

    0.25 / 0.25 is 1
    0.25 * 0.25 is 0.0625

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Counter object bug
    By Jymswiss in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 23rd April 2013, 06:51 PM
  2. Fix a Counter Object
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th April 2010, 05:11 PM
  3. How to use Flash Object on a counter bar
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd April 2008, 02:00 PM
  4. Counter Object BUG!!!
    By Casper1989 in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 15th July 2006, 10:34 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
  •