Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • format

    if mid is 1, 2 , 5 , 6 , 9 , 12 , 15 how can i make them two digit number like 01, 02, 05, 09, 12, 15

  • #2
    help format refers to the case of "right-justified with leading zeros". If "mid" really does refer to an ID variable, and the actual values contain many digits, you should think seriously about ensuring that the variable is held as a long rather than default float. Also look seriously into holding your ID as a string variable. There are many posts on Statalist about these issues; you can (and should) search for them.

    Comment


    • #3
      Stephen is naturally quite right, but see also http://www.stata-journal.com/sjpdf.h...iclenum=pr0051

      Comment

      Working...
      X