Bounded and floating types

2 Dec
2007
2 Dec
'07
12:39 p.m.
Currently Float & Double do not have standard Bounded instances. Is there any reason not to use the following? instance Bounded Float where { minBound = -1/0; maxBound = 1/0 } instance Bounded Double where { minBound = -1/0; maxBound = 1/0 } If I don't hear objections, I'll submit a ticket and re-send a proposal note. - Conal

2 Dec
2 Dec
1:21 p.m.
Conal Elliott wrote:
Currently Float & Double do not have standard Bounded instances. Is there any reason not to use the following?
instance Bounded Float where { minBound = -1/0; maxBound = 1/0 } instance Bounded Double where { minBound = -1/0; maxBound = 1/0 }
by the way, that minBound definition is (negate(1/0)), not ((negate 1) / 0) ... although that probably doesn't make a difference Isaac
6381
Age (days ago)
6381
Last active (days ago)
1 comments
2 participants
participants (2)
-
Conal Elliott
-
Isaac Dupree