Reputation: 3921
How do you check if a Double value is Infinity in Haskell?
Double
Infinity
Upvotes: 2
Views: 492
Reputation: 370112
The RealFloat class, of which both Float and Double are instances, has an isInfinite method.
RealFloat
Float
Upvotes: 5