Graphics

 View Only
  • 1.  Formatting numbers with commas

    Posted 11-22-2017 16:56
    How can I format a number with commas? I have raw data coming into my text object, and need the commas.


  • 2.  RE: Formatting numbers with commas

    Posted 11-22-2017 20:07
    Visual Logic has a "FormatFloat" element. In the properties for it, select "use custom format, and the probably the selection that looks like "#,###.##" You can put it back into your text field....

    Text1.Text--->FormatFloat--->Text1.Text

    ... without breaking anything. And while I now realize I really need to upgrade from 6.7, in my current version it has a bug with the decimal places.
    #XPression


  • 3.  RE: Formatting numbers with commas

    Posted 11-24-2017 13:48
    You can also add this as a script onto the text object:
    text = FormatNumber(text,0)
    #XPression