Floating point comparisons are a bad idea.

A better way would be x `mod` y == 0.

On Wed, Jan 8, 2020 at 10:01 AM Alexander Chen <alexander@chenjia.nl> wrote:
hi,

for a List comprehension I want to only include the integers of a division. In my beginners mind this should work:

(round (x / y)) == (x / y)

however, i get a nontrivial error blurp.

what am i doing wrong?

best,

Alexander 



_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners