User Tag List

Results 1 to 5 of 5

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 trying to display a ratio, but I can't seem to get a decimal point to appear.

    Example:
    Start of Frame:
    Set String1.text = "K/D:" +Str$(Kills/Deaths+0.0)
    But it just appears as 0, 1, 2 etc, not 1.50, or 0.75 etc etc.

    -

    Any help is much appreciated, thankyou.

  2. #2
    No Products Registered

    Join Date
    Oct 2008
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimal Point

    Try *1.0 rather than +0.0
    That's all I can think of.

  3. #3
    No Products Registered

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

    Re: Decimal Point

    Quote Originally Posted by DragonMC
    Try *1.0 rather than +0.0
    That's all I can think of.
    you'll also have to put parenthesis around the "dummy" float value and the variable, so it will convert one of the numbers to a float before it divides

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

    Quote Originally Posted by xyzzy
    you'll also have to put parenthesis around the "dummy" float value and the variable, so it will convert one of the numbers to a float before it divides
    i.e.
    Start of Frame:
    Set String1.text = "K/D:" +Str$((Kills+0.0)/Deaths)

  5. #5
    Clicker Fusion 2.5

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

    Re: Decimal Point

    Thankyou so much Dynasoft, that works perfectly!

    Thanks for all the help, guys!

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: 2
    Last Post: 23rd May 2010, 07:16 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
  •