Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: RE: round

From   Tim Evans <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: round
Date   Wed, 14 Sep 2011 11:37:51 +0100

Would the following do the trick for you? 

gen real=round(obs, .01)

Substitute real with the name of what you want to call your variable and replace obs with the name of the variable containing the .4378


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Carla Horlacher
Sent: 14 September 2011 11:24
To: [email protected]
Subject: st: round

Hallo all!

I have a quick question:

how do I round numbers like .4378 to get only 2 digits after the point?

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro!
*   For searches and help try:

This email and any attachments hereto contains proprietary information, some or all of which may be confidential or legally privileged. It is for the exclusive use of the intended recipient(s) only. If an addressing or transmission error has misdirected this e-mail and you are not the intended recipient(s), please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail or any attachments, as this may be unlawful.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index