Skip to content

Commit dcbdcfe

Browse files
Update rounding.md
1 parent d6b0711 commit dcbdcfe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

numbers/rounding.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ title: Rounding Numbers
44
permalink: /rounding/
55
---
66

7-
There are many ways of rounding to the nearest integer, up, down, or toward a specified decimal place. Lets assume `x = 1, 1.35, 1.7, 2.05, 2.4, 2.75, 3.1, 3.45, 3.8, 4.15, 4.5, 4.85, 5.2, 5.55, 5.9`. The following illustrates the common ways to round `x`.
7+
There are many ways of rounding to the nearest integer, up, down, or toward a specified decimal place. Assuming we have the following vector `x`:
88

9+
```r
10+
x <- (1, 1.35, 1.7, 2.05, 2.4, 2.75, 3.1, 3.45, 3.8, 4.15, 4.5, 4.85, 5.2, 5.55, 5.9)
11+
```
12+
13+
The following illustrates the common ways to round `x`:
914

1015
```r
1116
# Round to the nearest integer

0 commit comments

Comments
 (0)