User Tag List

Results 1 to 8 of 8

Thread: Number closest to 0

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Number closest to 0

    Is there a way to pick out of two numbers the one closest to 0 in one expression?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Min(value1, value2)

    If negative values are accepted, you need to use this:
    Min(Abs(value1), Abs(value2))

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, i actually already tried that, but the problem is that Abs changes the number when there are negative values.

    Ex: Min(Abs(-10), Abs(20)) = 10 , instead of -10

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Stochastic Utility has expressions for this. Nearest() and IntNearest(). In fact, Stochastic Utility is very overlooked, it has tons of useful expressions.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I actually have that extension, but i never used it, it lacks a help file though, i have no clue what most of those commands do...

    Anyway thanks very much.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The examples shows what they do in graph form but I suppose it can be a bit tricky to understand.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Skyhunter, what is the range the numbers could fall between?
    -----------------
    nevermind, i thought i had something but my moment of clarity was replaced by the reality that i didn't.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nifflas View Post
    The examples shows what they do in graph form but I suppose it can be a bit tricky to understand.
    Oh, i actually just now noticed you made this post about examples and then realised i dont have any examples, i actually had some older version of the object... but i looked at the examples now, it looks quite useffull...

Similar Threads

  1. Finding the closest value...
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th June 2012, 06:27 PM
  2. which active is closest to?
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th July 2010, 07:13 PM
  3. Find closest point
    By haora in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th July 2007, 10:24 AM
  4. Find Closest Object?
    By Dines in forum Extension Development
    Replies: 5
    Last Post: 21st December 2006, 11:10 AM
  5. Closest Object A to Obect B
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th December 2006, 07:28 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
  •