haskell-phrasebook
haskell-phrasebook copied to clipboard
Types of numbers
This would be sort of a followup to common types that goes more in depth on numbers.
- Signed integers:
Integer,Int8,Int16,Int32,Int64 - Unsigned integers:
Natural,Word8,Word16,Word32,Word64 IntandWordare hardware-specific type aliases (e.g.Intis probablyInt32orInt64on a 32-bit or 64-bit processor)- Floating point:
Float,Double - The default types for numeric literals are
Integerfor whole numbers areDoublefor fractions. - Also:
Complex,Ratio,Rational - Conversions between types of numbers
If there are too many things to show, this topic might span multiple examples.