User Tag List

Results 1 to 5 of 5

Thread: Math Storage Objects

  1. #1
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Math Storage Objects

    Which of the storage objects can store numbers that have decimal points?
    Thanks,
    Steve

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Math Storage Objects

    Hmmm... looks like neither Array or Dynamic Array can do this.

    What are you planning to use the decimal numbers for? Often times, it is actually easier (not to mention more efficient) to store decimal value as, say, an integer that is 100 times more than the decimal. Then when you want to retrieve it later, just divide by 100.0 and you have your decimal number.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Math Storage Objects

    Why not store it as a string?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Math Storage Objects

    You could just use a counter or you could simply store your float as a string. When you go to return it to a value just covert it to a value. I've tried a few object and it seems to work ok.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Math Storage Objects

    I'm making science applications that require a lot of numerical data to be stored. It just seems odd to me that a number storage object would not take a number unless it is an integer. You can store the numbers as strings, but that means converting them which adds an extra step each time. And dividing by 100 or 1000 doesn't work too well when the numbers can range from 0.0005 to 100,000,000. Creating any science or accounting applications really needs a way to store decimal numbers more conveniently.
    Steve

Similar Threads

  1. IAP Non-comsumable storage
    By SevenSails in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 7th November 2012, 02:02 PM
  2. Data storage
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th February 2009, 05:09 PM
  3. Data storage
    By Ganryu in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th November 2008, 07:45 AM
  4. Speed comparison of data storage objects.
    By RaiFox in forum File Archive
    Replies: 11
    Last Post: 25th April 2007, 02:05 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
  •