
4 Nov
2017
4 Nov
'17
7:06 p.m.
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.