User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: 1.5 on a counter object

  1. #1
    No Products Registered

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

    1.5 on a counter object

    Hi,

    How do you get point numbers (1.5 , 2.7526) on a counter?

  2. #2
    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

    Set counter to 1.5

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: 1.5 on a counter object

    Haha, seriously, how couldn't you find that out on your own? :P
    It's SO obvious.

  4. #4
    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

    No, I want to do a Physics sum and it keeps rounding the numbers up (or down). I really need to know and don't be so cheeky

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: 1.5 on a counter object

    Ah. Are you using the / operator?
    You have to add .0 to both the divisor then, for example:

    10/3 = 3
    10/3.0 = 3.333...

  6. #6
    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

    OK, I admit, I am trying to make a Physics calculator so what you have said is very good, but how do I use this with edit boxes because what is happening is that it gets the values of the boxes and does the some. (yes, its the / and *)

    EDIT - When is put something like 0.5 in the first Edit box, 0.5 in the second Edit box (the answer should be 0.25) it comes out as 0

  7. #7
    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

    Edit boxes Get Numeric Value expression will remove decimals. Use val(EditText$("Edit Box")) instead to retrieve decimals.

  8. #8
    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

    Sorry for all the questions so how would you use this to calculate the following:

    State:
    Edit box one = 0.5
    Edit box two = 0.5

    Answer = Edit box one * Edit box two
    Answer 2 = Edit box one / Edit box two
    Answer 3 Edit box one + Edit box two
    Answer 4 = Edit box one - Edit box two

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: 1.5 on a counter object

    Answer = val(EditText$("Edit Box")) * val(EditText$("Edit Box 2"))
    Answer 2 = val(EditText$("Edit Box")) / (val(EditText$("Edit Box 2"))*1.0)

    etc.. I think *1.0 is only needed for division.

  10. #10
    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

    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

Page 1 of 2 1 2 LastLast

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
  •