Announcement

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

  • The mean of format %5.2f Variable

    Hello, I want to know about the function of "%", "5", "2", "f" in format %5.2f Variable. Also, Do u give me examples please...?
    Last edited by Francisco Minchala; 21 Mar 2023, 15:59.

  • #2
    Francisco:
    see -format- entry, Stata .pdf manual.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      A good way to learn what different display formats do is to experiment using display:

      .
      Code:
       di %5.2f _pi
       3.14
      
      . di %23s "foo"
                          foo
      Code:
      
      

      Comment

      Working...
      X