User Tag List

Results 1 to 4 of 4

Thread: Percentage Question

  1. #1
    No Products Registered

    Join Date
    Apr 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Percentage Question

    What's the syntax for subtracting a percentage of something....

    I want to subtract 5% from a counter.
    I thought it would be

    Set Counter "Counter" to
    value( "Counter" ) - 5%

    It gives me a syntax error.

  2. #2
    No Products Registered

    Join Date
    Apr 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Percentage Question

    Gah... Nvm. I figured it out.

    value( "Counter" )-(maxvalue( "Counter" )*0.05)

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: Percentage Question

    Or value( "Counter" )/100.0*5.0

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Percentage Question

    "value( "Counter" )/100*5 " may be incorrect if you want your result to use decimals. Use 100.0 and 5.0 instead.
    .:::.Joshtek.:::.

Similar Threads

  1. How to get the percentage of two counters?
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th April 2012, 06:09 PM
  2. Cannot get percentage?
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 14th May 2010, 01:08 PM
  3. Percentage of Counter
    By Jdsfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th October 2008, 03:14 PM
  4. Percentage
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th December 2006, 06:57 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
  •