Rounding Decimal Numbers in Stata | Rounding off in Stata | Stata Tutorial
40K views
Mar 19, 2023
In some cases, we might want to round off decimal numbers in Stata. For that, we can use round, ceil, floor, or int function. These functions can round off the number to the nearest whole number, or round off to the nearest higher number or round off to the nearest lower number or simply delete the numbers after decimal points in stata. 00:00 Why do we need to round numbers 1:00 Generate Random numbers 2:55 Round off to a nearest whole number 5:37 Round to nearest multiple of 2 6:58 Round off to a nearest higher number 7:55 Round to nearest lower number 8:15 remove digits after decimal point Website: thedatahall.com