Andrei Bozantan
Andrei Bozantan

Reputation: 3921

Haskell Infinity check for Double data type

How do you check if a Double value is Infinity in Haskell?

Upvotes: 2

Views: 492

Answers (1)

sepp2k
sepp2k

Reputation: 370112

The RealFloat class, of which both Float and Double are instances, has an isInfinite method.

Upvotes: 5

Related Questions