Statalist The Stata Listserver


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

Re: st: Rounding


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
Subject   Re: st: Rounding
Date   Fri, 1 Jun 2007 16:24:21 -0400

Danielle,

See [U] 13.10, "Precision and problems therein."

Friedrich

On 6/1/07, Ferry, Danielle (Exchange) <[email protected]> wrote:
Dear Statalisters,
Stata fails to round some numbers. Why? And can I do something about
this?

Here is the command I am using:
local r2_1 = round(e(r2), 0.001)

Here is a number that is not being rounded:
.9470000000000001

Thanks.

----------------
Danielle H Ferry
Bear Stearns Asset Management
Structured Credit Group
237 Park Avenue, 7th Floor
New York, NY 10017
Tel 212/272-3415
Fax 917/849-2317
*
*   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