GeezerVison is showing github.com — Number type fix · eliooses/javascript@8806250
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +2-4Lines changed: 2 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # Numbers |
2 | 2 |
|
3 | | -JavaScript has only one type of numbers, it does not define different types of numbers, like integers, short, long, floating-point etc. A number could be a **Float** (ex: 1.23) or an **Integer** (ex: 10). |
| 3 | +JavaScript has **only one type of numbers** – 64-bit float point. It's the same as Java's `double`. Unlike most other programming languages, there is no separate integer type, so 1 and 1.0 are the same value. |
4 | 4 |
|
5 | | -There is nothing magical or strange going on with these. You define variables and set their values to any number type. |
6 | | - |
7 | | -In this chapter, we'll learn how to create numbers and perform operations on them (like additions and subtractions). |
| 5 | +In this chapter, we'll learn how to create numbers and perform operations on them (like additions and subtractions). |