Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Steve Samuels <sjsamuels@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: RE: RE: AW: Decimal Precision with Destring |

Date |
Mon, 19 Apr 2010 16:14:12 -0400 |

I think that Maarten means "9 digits BEFORE the decimal point". Steve On Mon, Apr 19, 2010 at 3:35 PM, Maarten buis <maartenbuis@yahoo.co.uk> wrote: > --- On Mon, 19/4/10, Sutton, Bennett W. wrote: >> I know these are insanely small hairs to be splitting, but >> unfortunately this work is going into a publication and I >> need to make sure that the rounded result will be 4.5 and >> not 4.6. (not just here but in many, many other >> calculations.) > > If reproducability across programs is your aim, then your > best bet is probably to multiply your variables with some > multiple of 10 such that the largest value of each variable > has 9 digits after the decimal point, round the variables, > and than store these variables as -long-s (with the > factors). Computers have much less trouble representing > integers, so this way you are more likely to get the same > results across computer programs. > > Hope this helps, > Maarten > > -------------------------- > Maarten L. Buis > Institut fuer Soziologie > Universitaet Tuebingen > Wilhelmstrasse 36 > 72074 Tuebingen > Germany > > http://www.maartenbuis.nl > -------------------------- > > > > > > > > * > * 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/ > -- Steven Samuels sjsamuels@gmail.com 18 Cantine's Island Saugerties NY 12477 USA Voice: 845-246-0774 Fax: 206-202-4783 * * 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: RE: RE: RE: AW: Decimal Precision with Destring***From:*"Sutton, Bennett W." <BSutton@imf.org>

**Re: st: RE: RE: RE: AW: Decimal Precision with Destring***From:*Maarten buis <maartenbuis@yahoo.co.uk>

- Prev by Date:
**Re: st: Adjusted Prevalence** - Next by Date:
**Re: st: Output format** - Previous by thread:
**Re: st: RE: RE: RE: AW: Decimal Precision with Destring** - Next by thread:
**Re: st: Decimal Precision with Destring** - Index(es):