Results 1 to 3 of 3

Thread: Separating thousands with comma

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Aug 2015
    Posts
    17
    Rep Power
    11

    Separating thousands with comma

    Is there an easier way to separate thousands with comma?

    Uses "Console"
    PrintL format$(123456789.123,"###,###,###.###")
    WaitKey
    
    In the code above, we would have to know beforehand how large the value to be printed is, and the code would fail to place all the commas if the value were larger.

    We could use

    PrintL format$(123456789.123,"###,###,###,###,###,###,###,###.###")
    
    to anticipate larger values, but I wonder if there is a more elegant solution.
    Last edited by paravantis; 29-08-2024 at 18:29.

Similar Threads

  1. Forum bombed by thousands of connections
    By ErosOlmi in forum Web and Forum
    Replies: 4
    Last Post: 16-01-2023, 09:12
  2. File Reading and separating "fields"
    By TheOne in forum File
    Replies: 5
    Last Post: 11-03-2011, 18:51

Members who have read this thread: 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •