Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: y axis significant digits


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: y axis significant digits
Date   Mon, 31 Mar 2008 07:16:48 -0400

Well, I see in the help file that %#.#fc is a right justified comma format that is a fixed numeric format. That means that %9.1fc should have a total width of 9 (including punctuation) with 1 digit after the decimal (fixed part) and use commas in numbers greater than 999. A few simple experiments using the display command will show you that it drops out the commas as the width expands to 9 and then goes to scientific notation after that. I also see -- under the oh-so cryptically titled section "leading zero formats" -- that if I wanted leading zeros you would use "%09.1f". I guess it doesn't spoon feed everything to you with examples, but it's easy to try them yourself interactively with -display-.


----- Original Message ----- From: "Chris Witte" <[email protected]>
To: <[email protected]>
Sent: Sunday, March 30, 2008 11:13 PM
Subject: Re: st: y axis significant digits



Ummm--so do the numbers mean the amount of digits to be displayed? Ummmm-- This isn't obvious from the format help file. And it didn't stick a bunch of zeros infront of my number either, since I used 9. Ummmm


----- Original Message ----
From: Michael Blasnik <[email protected]>
To: [email protected]
Sent: Sunday, March 30, 2008 10:00:51 PM
Subject: Re: st: y axis significant digits

Chris Witte wrote

ok, I found that I can use "format %9.1fc" to get one decimal point in my axis
values (took a guess from looking at the stata manuals)....so where do I find
more information as to what this "%9.1fc" means?
...
Ummmm-- how about trying -help format-?

Michael Blasnik
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index