Skip to content

Commit 6c4c77e

Browse files
authored
Fix Conflicts 1/5/2 --should --review --rewrite
1 parent 4679bb8 commit 6c4c77e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

1-js/05-data-types/02-number/article.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,12 @@ alert( 123456..toString(36) ); // 2n9c
114114

115115
يختصر الجدول في الأسفل الاختلافات بين هذه التوابع:
116116

117-
<<<<<<< HEAD
118117
| | `Math.floor` | `Math.ceil` | `Math.round` | `Math.trunc` |
119118
| ---- | ---------- | --------- | ---------- | ---------- |
120119
| 3.1 | 3 | 4 | 3 | 3 |
121120
| 3.6 | 3 | 4 | 4 | 3 |
122121
| -1.1 | -2 | -1 | -1 | -1 |
123122
| -1.6 | -2 | -1 | -2 | -1 |
124-
=======
125-
For example, to round the number to the 2nd digit after the decimal, we can multiply the number by `100` (or a bigger power of 10), call the rounding function and then divide it back.
126-
```js run
127-
let num = 1.23456;
128-
>>>>>>> 445bda39806050acd96f87166a7c97533a0c67e9
129-
130-
131123

132124
تُعَطِّي هذه التوابع جميع الاحتمالات الممكنة للتعامل مع الجزء العشري للعدد، لكن ماذا إن كنا نريد تقريب العدد إلى خانة محدَّدة بعد الفاصلة العشرية؟
133125

0 commit comments

Comments
 (0)