Statalist


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

st: Bug?


From   "Le Wang" <[email protected]>
To   [email protected]
Subject   st: Bug?
Date   Mon, 20 Oct 2008 20:36:59 -0400

Hi all,

Thanks in advance for your time.

I am trying to use -- ceil() -- to do the following calculations that
are supposed to give identical results, but the results turn out to be
different. I couldn't figure out the solution to this problem.

Le

The codes
-----------------------------------------------------------------------

. di ceil((0.05-0.04)/0.01)
2

. di ceil((0.04-0.03)/0.01)
2


. di (0.04-0.03)/0.01
1

-----------------------------------------------------------------------

-- 

~~~~~~~~~~~~~~~~~~~~~~~~
Le Wang, Ph.D
Assistant Professor
Department of Economics
University of New Hampshire
*
*   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/



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