Skip to content

Commit a28a5d8

Browse files
committed
Merge pull request GitbookIO#48 from Hermanya/patch-1
Number type fix
2 parents 491bebb + 8806250 commit a28a5d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

numbers/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Numbers
22

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.
44

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).

0 commit comments

Comments
 (0)