> Is this expected? If so, why?
Yes, that is expected.
The approxRational calculation is based on x+eps and x-eps, which is
1%100 and 3689348814741910323%20 in your example, and the last one is
due to the fact that there are no negative numbers in word and there
is a silent underflow. (similar to: (0::Word)-1).
And the simplest rational number between these two is 1.
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafeOnly members subscribed via the mailman list are allowed to post.