[Haskell-cafe] Int vs Integer
daniel.carrera at zmsl.com
Sun Dec 18 19:16:18 EST 2005
Thanks for the info, and the link.
I probably should have guessed the Double vs Float one. I did program in
C a while ago...
Jared Updike wrote:
> Int is for bounded values -2**32 to 2**32 (I think... maybe 2**-31 and
> 2**31 or less if it's boxed?) based on the underlying machine
> representation. Integer is unbounded (arbitrary precision, i.e.
> 7489571948579148758174534 is a valid Integer). Double is for floating
> point values corresponding to C doubles, in hardware (on 32 bit
> machines, 64 bit entities) and Floats are half that precision, i.e. 32
> bits on 32 bit machines, corresponding to C floats.
> see http://www.haskell.org/onlinereport/basic.html#sect6.3 and
> http://www.haskell.org/onlinereport/basic.html#sect6.4 for more info.
> On 12/18/05, Daniel Carrera <daniel.carrera at zmsl.com> wrote:
>>I found a good Haskell tutorial (second link on the Tutorials column)
>>(now that I know how to run the programs in it). I have a question.
>>What's the difference between the types Int and Integer? Likewise,
>>what's the difference between the types Float and Double? Are those just
>>Thanks for the help.
>> /\/`) http://oooauthors.org
>> /\/_/ http://opendocumentfellowship.org
>> \/_/ I am not over-weight, I am under-tall.
>>Haskell-Cafe mailing list
>>Haskell-Cafe at haskell.org
> jupdike at gmail.com
> reverse ")-:"
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
\/_/ I am not over-weight, I am under-tall.
More information about the Haskell-Cafe