Google News
logo
Haskell - Interview Questions
List out the numeric types in the Haskell 'prelude'?
In Haskell, there are five numeric types that includes :

Int : It is an integer having at least 30 bits of precision

Integer : It is an integer having unlimited precision

Float : It is a single precision floating point number

Double : It is a double point precision floating point number

Rational : It is a fraction type with no rounding error.
Advertisement