User Tag List

Results 1 to 3 of 3

Thread: Problem setting a Global Variable to use decimals

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem setting a Global Variable to use decimals

    Hey, folks!

    I seem to be having a problem with either a Global Variable or a Named Variable object saving a numeric value which uses decimals (to two places). The Named Variable object saves an INI file, which if the number is greater than 0 but less than 1, it rounds down to 0. I would like to be able to use numbers (with decimal places) between 0 and 1.

    I have confirmed that both the Global Variable and the Named Variable object work fine with whole numbers. But I'm not sure if the issue is with the Global Variable or the Named Variable object that I can't save values between 0 and 1 to the INI file.

    Any thoughts?

    As always, thank you for your help!



    Most appreciatively...

    RGBreality

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Problem setting a Global Variable to use decimals

    I think INI files support only integer values. To save a floating point value, use the Set String function and convert your value with str$ (and read it with Get String and the val function).

  3. #3
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem setting a Global Variable to use decimals

    Hey, Yves! That works just fine! Thank you so much for your quick reply!



    Most appreciatively...

    RGBreality

Similar Threads

  1. variable global
    By copperbob in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th February 2012, 08:15 PM
  2. Global variable = alterable variable
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2011, 08:54 PM
  3. Problem with a global variable
    By DisneyBoy in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th February 2011, 12:02 AM
  4. Setting a string to the value of a variable
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th February 2009, 06:31 PM
  5. Decimals in the Named Variable Object
    By netninja in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th November 2007, 11:31 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
  •