Predefined Functions on Numbers
Learn about a few useful built-in functions for numbers.
We'll cover the following
Apart from the arithmetic operators +
, -
, *
, /
, there are quite a few useful predefined functions for working with numbers. These functions live in a predefined Haskell module called Prelude. When starting ghci
, it loads the Prelude module by default, which is why you also see it displayed in the prompt of ghci
.
Once again, here is a terminal widget, which you can use to run ghci
and try out the functions introduced in this lesson.
Get hands-on with 1400+ tech skills courses.