[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: rounding in STATA
I have a minor issue with the way STATA is rounding, for example a
variable to one decimal place.
I used the command
gen x=round(y, 0.1)
Comparing the two variables, I noticed the that when:
Is there a way I can modify the function to round "x"=8.750 to be 8.8
Or should I put together my own code to get the rounding I want.
Many thanks in advance...
* For searches and help try: