Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: RE: round

From   Tim Evans <>
To   "''" <>
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: [] On Behalf Of Carla Horlacher
Sent: 14 September 2011 11:24
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–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index