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

Re: st: Turn off scientific notation

From   Steven Samuels <>
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.

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:
*   For searches and help try:

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