Skip to content

Commit 5b9d099

Browse files
committed
Negative Floats & Integers
I think it's a good thing to show that negatives are also included. Removed the word "whole" because that can be confusing to people that learnt a different definition of "whole numbers" (that might have excluded negative numbers).
1 parent 1cb8c67 commit 5b9d099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

basics/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Computers are sophisticated and can make use of more complex variables than just
55
The most common types are:
66

77
* **Numbers**
8-
* **Float**: a number, like 1.21323, 4, 100004 or 0.123
9-
* **Integer**: a natural number like 1, 12, 33, 140 but not 1.233
8+
* **Float**: a number, like 1.21323, 4, -33.5, 100004 or 0.123
9+
* **Integer**: a number like 1, 12, -33, 140 but not 1.233
1010

1111
* **String**: a line of text like "boat", "elephant" or "damn, you are tall!"
1212

0 commit comments

Comments
 (0)