User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Adding "commas" to long numbers?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding "commas" to long numbers?

    Before I code it on my own, is there an extension that automatically will add commas for long numbers?

    Example:

    1000 would be 1,000

    Thanks.

  2. #2
    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: Adding "commas" to long numbers?

    Try this example I made back in 2006: http://x.jflom.com/files/DigitGrouping.zip
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    Sure does work... I'll use that if there are no objects that can do it with one expression.

    Thanks, Joshtek!

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    2,289
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Adding "commas" to long numbers?

    I think the Formatted Object by Sphax might be what you are looking for.

    Try the expression under Manipulations: Get number with thousands separated.

    That may do the trick. Let us know.

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    In my application I am dealing with dollar amounts. I currently use the precision calculator to generate the correct values. I then use the set number of decimals after the decimal point to get 2 decimals. Now with the Formatted Object I can add thousands separters.

    One problem is how do you read it back in as a number. I there an extension that takes 1,234.44 and reads it as the number 1234.44 or 1,000,000.00 to 1000000.00?


  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    Novabrain,

    I couldn't find a "Manipulations" or "Get number with thousands separated" expression.

    I'm about to see if I have the latest version of Formatted Object.

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    You have to use the expression editor to get to it. This is a trick of MMF you will find all the time in several cases. You want an action but can't find it unless you use the expression box.

    Example: You have a number in an edit box. Then in the event editor you say

    Condition: Set current text of edit box to
    and for the action you use the expression editor. Here you click on retreive data from object. You then will see the Manipulations you are looking for.




  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    I understand Actions, Conditions, and Expressions... I just can't find "Get number with thousands separated" anywhere in the expressions menu of the Fomatted Object...


    droberson, do you see it?


    Thanks.

  9. #9
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    Quote Originally Posted by aidmm
    I understand Actions, Conditions, and Expressions... I just can't find "Get number with thousands separated" anywhere in the expressions menu of the Fomatted Object...


    droberson, do you see it?


    Thanks.
    It's the Sphax Formatted Object

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding "commas" to long numbers?

    I'm using the Sphax Formatted Object.

    It looks like I'll need an exact walk through... this is what I'm doing:

    Start of Frame -> Change Alterable String to (Expression goes here... this is where I retrieve data from Formatted Object)

    "Get Number With Thousands Separated" is not here, though.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Set edit box text to string$("string object") causes long delay
    By MJK in forum XNA Export Module Version 2.0
    Replies: 4
    Last Post: 22nd August 2012, 02:58 PM
  2. "Long" running method
    By Keith in forum Extension Development
    Replies: 7
    Last Post: 11th January 2012, 12:42 PM
  3. Adding Return to "Change alterable Text" event
    By Teh_Purple_d00d in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th December 2011, 01:45 AM
  4. Help with "Adding" Commands
    By Telephone in forum File Archive
    Replies: 3
    Last Post: 19th February 2011, 08:55 PM
  5. Icon view? Anyone had success with "adding" images
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 11th April 2008, 11:29 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
  •