User Tag List

Results 1 to 8 of 8

Thread: Can't I use the "div" function??

  1. #1
    No Products Registered

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

    Can't I use the "div" function??

    I am able to use the "mod" function but when I try to use "div" I get an error.
    is that possible anyway somehow?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't I use the "div" function??

    Div as in divide? That would be /.

  3. #3
    No Products Registered

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

    Re: Can't I use the "div" function??

    no. for example:
    12345 mod 10 = 5
    12345 div 10 = 1234

  4. #4
    No Products Registered

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

    Re: Can't I use the "div" function??

    so basically just integer division?

    MMF does this by default (you have to force it to divide with floats if you want them), so you could just do 12345/10

  5. #5
    No Products Registered

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

    Re: Can't I use the "div" function??

    No.
    9 mod 3 = 0
    9 div 3 = 3

    10 mod 3 = 1
    10 div 3 = 3

    and so on..

    12345 div 10 = 1234
    12345 / 10 = 1234.5
    that's not the same.

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't I use the "div" function??

    What about floor(12345/10) ?

  7. #7
    No Products Registered

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

    Re: Can't I use the "div" function??

    Quote Originally Posted by bearcub
    No.
    9 mod 3 = 0
    9 div 3 = 3

    10 mod 3 = 1
    10 div 3 = 3

    and so on..

    12345 div 10 = 1234
    12345 / 10 = 1234.5
    that's not the same.
    yes, but MMF treats 12345/10 as 12345 div 10, and will do the same with 10/3

  8. #8
    No Products Registered

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

    Re: Can't I use the "div" function??

    god you're right!

    xerus - what ??

Similar Threads

  1. "Cannot load joystick2.mfx" when "Compress the runtime" unchecked. Fine when checked.
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th September 2013, 09:44 PM
  2. "Rendertarget ping/pong" and "Pixel shaders" Can TGF2 do this?
    By CloudExSolider in forum The Games Factory 2 - Technical Support
    Replies: 13
    Last Post: 7th April 2013, 08:21 PM
  3. Issues with "Clickteam Movement Controller" and "Runtime" Object
    By jimmyorpheus in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 29th November 2011, 07:10 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
  •