leading zeros

Home Forums General Programming leading zeros

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6964
    Bomma72
    Participant
      • Topics: 20
      • Replies: 68
      • Total: 88

      What is the command to add leading zeros to a number string?  I looked online but there wasn’t a decisive answer.

      #6966
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        Lua string.format is the same as printf, so you can pad all you want:
        http://www.cplusplus.com/reference/cstdio/printf/

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The forum ‘Programming’ is closed to new topics and replies.
      There is currently 0 users and 42 guests online
      No users are currently active
      Forum Statistics
      Threads: 2,495, Posts: 17,374, Members: 77,605
      Most users ever online was 12 on January 22, 2019 3:47 pm
      Ctrlr