Haskell 128bit showing

393 Views Asked by At

My Question is that: Is it possible to show (2^63::Int) in 128 bit in Haskell?

Because of Int abs (2^63::Int) will not work because of the Int, but What If I have a 128 bit computer or compiler is it possible then to show the result?

Of course if it is possible, then please show me the way :)

1

There are 1 best solutions below

0
On

According to the Report, this question is implementation specific:

The finite-precision integer type Int covers at least the range [-2^29, 2^29-1]. As Int is an instance of the Bounded class, maxBound and minBound can be used to determine the exact Int range defined by an implementation.

I know of no implementations for which maxBound :: Int is larger than 2^63-1.