diff --git a/concepts/numbers/introduction.md b/concepts/numbers/introduction.md index 87f92aff4..48fc447b7 100644 --- a/concepts/numbers/introduction.md +++ b/concepts/numbers/introduction.md @@ -1,6 +1,6 @@ # Introduction -`Integer`s hold any number no matter how big, up to the limit of your machine's memory, while `Int` corresponds to the set of positive and negative integers that can be expressed in 32 or 64 bits (guaranteed at least -2^29 to 2^29). +An `Integer` holds any number no matter how big, up to the limit of your machine's memory, while `Int` corresponds to the set of positive and negative integers that can be expressed in 32 or 64 bits (guaranteed at least -2^29 to 2^29). `Float` corresponds to the set of real numbers, limited by the precision of the computer. Operations defined on numbers usually work on one type or the other, but not both. @@ -9,6 +9,7 @@ Functions to convert between `Float` and `Integer` include, among others, `toFlo Conversion from an integer type (`Int` or `Integer`) to any other numeric type is done using the function `fromIntegral`. The target type is inferred automatically. + For example: ```haskell