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]
st: Why does "di round(85*0.7)" equal 59, rather not 60 ?
From
Grace Jessie <[email protected]>
To
<[email protected]>
Subject
st: Why does "di round(85*0.7)" equal 59, rather not 60 ?
Date
Sun, 16 Jan 2011 12:47:36 +0000
Dear statalists,
Why does "di round(85*0.7)" equal 59 , rather not 60?
It is as following.
. di round(85*0.7)
59
. di 85*0.7
59.5
. di round(59.5)
60
Thanks!
Grace
*
* 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/