Skip to content

Commit

Permalink
Number type fix
Browse files Browse the repository at this point in the history
According to the *Good Parts*, there is actually no difference between `integer` and `floating point` numbers in JavaScript.
  • Loading branch information
Hermanya committed Apr 24, 2014
1 parent 491bebb commit 8806250
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions numbers/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Numbers

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

There is nothing magical or strange going on with these. You define variables and set their values to any number type.

In this chapter, we'll learn how to create numbers and perform operations on them (like additions and subtractions).
In this chapter, we'll learn how to create numbers and perform operations on them (like additions and subtractions).

0 comments on commit 8806250

Please sign in to comment.