[Haskell-cafe] Why aren't Float and Double Bounded?

Andrew Coppin andrewcoppin at btinternet.com
Tue Nov 27 15:25:32 EST 2007


Josh Lee wrote:
> On Tue, 27 Nov 2007 14:41:59 -0500
> Isaac Dupree <isaacdupree at charter.net> wrote:
>
>   
>> Henning Thielemann wrote:
>>     
>>> On Mon, 26 Nov 2007, Jason Dusek wrote:
>>>
>>>       
>>>> Among numeric types, it seems that only integer types are Bounded.
>>>>         
>>> Maybe because IEEE format supports Infinity?
>>>       
>> therefore, maxBound is Infinity and minBound negative infinity?
>>     
>
> Using Infinity would go against the meaning of Enum.

Perhaps. But we're talking about Bounded, not Enum. ;-)



More information about the Haskell-Cafe mailing list