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/