Closed saraedum closed 4 years ago
Hm…on the last run of the program it suddenly works. Sorry for the noise. Let me investigate what I was doing wrong.
Sorry, my bad. I was comparing pointers instead of values in an earlier version of the above reproducer. Everything seems to work fine.
I might be doing something wrong here but it seems to me that
arf_get_d()
is getting some roundings wrong withARF_RND_NEAR
.In the following example I take an arf element
a
that came up randomly in https://github.com/videlec/e-antic/pull/114 and round it witharf_get_d(ARF_RND_NEAR)
which givesx
. However, the doubley
is closer toa
so I thinkarf_get_d
should have returned that double instead.The output of this program is: