User Tag List

Results 1 to 3 of 3

Thread: Decimal Point

  1. #1
    Clicker Fusion 2.5

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

    Decimal Point

    Hi,

    I am using a simple calculation to create a ratio, however, I only want it to calculate a ratio with 2 decimal points it, no more.

    1.33

    not 1.333333

    Thanks

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimal Point

    Does it need to calculate like that, or only display like that? The counter object can be set to show 2 decimal places.

    To calculate like that, the easiest way is to multiply by 100, round, (giving 133), then divide by 100.0 (giving ~1.33, +/-0.0000000001 (floating point error)).

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimal Point

    The expression for which would be:

    floor(1.3333*100.0)/100.0

Similar Threads

  1. iOS HWA or other way to get decimal point angles?
    By ratty in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 16th June 2013, 06:26 PM
  2. Decimal point on counters problem
    By Ryan in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 12th April 2012, 09:25 AM
  3. Decimal Point
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th December 2008, 04:53 PM
  4. Rounding to decimal point.
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th June 2008, 02:42 PM
  5. Help! - Moving from Point A to Point B - arched.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd April 2008, 07:15 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
  •