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

From |
Steven Samuels <[email protected]> |

To |
[email protected] |

Subject |
Re: st: Turn off scientific notation |

Date |
Wed, 20 Aug 2008 17:52:03 -0400 |

Try format %20.10f The "12" in front of the decimal is the total number of digits, including decimal point, I believe, that Stata allocates to the variable. 12-10 =2 -1 for the decimal--you have room for only 1 digit before the decimal and no spaces before that. You simply haven't given the variable enough space.

-Steve

On Aug 20, 2008, at 5:38 PM, Diana Eastman wrote:

Hi all,

I have a variable that needs to be expressed with a high level of

precision. Stata keeps representing the value as 1.871e+09, for example.

I need this number to be formatted as a decimal, preferably with as many

decimal places as possible. I tried using format totppm %12.10f, but

that doesn't do the trick. Is there some way to turn off the use of

scientific notation?

Many thanks in advance.

*

* For searches and help try:

* http://www.stata.com/help.cgi?search

* http://www.stata.com/support/statalist/faq

* http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Turn off scientific notation***From:*"Diana Eastman" <[email protected]>

- Prev by Date:
**st: tslines for categories** - Next by Date:
**Re: st: Turn off scientific notation** - Previous by thread:
**Re: st: Turn off scientific notation** - Next by thread:
**Re: st: Turn off scientific notation** - Index(es):

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