you set it to with fesetround() (see
man page)
To my great shame, I didn't know about fesetround(). Thanks a lot too!
Best regards,
Daria Shanina
пн, 14 апр. 2025 г. в 17:26, Tom Lane :
> Christoph Moench-Tegeder writes:
> > ## Daria Shanina (vilensip...@gmail.com):
> >
Hi, Tom!
> Round-to-nearest-even is a well-respected rule
Yes, you're convinced me! I can’t argue with IEEE 754 =) And, of course,
can’t break compatibility.
Best regards,
Daria Shanina
пн, 14 апр. 2025 г. в 17:26, Tom Lane :
> Christoph Moench-Tegeder writes:
> >
=msvc-170
says something else.
I tested at several OS:
Lubuntu
daria-shanina@lnv-dshanina:~/projects/test$ ./rounding_up
rint(2.00) is 2.0 | round(2.00) is 2.0 | ceil(2.00) is 2.0 | floor(2.00) is
2.0
rint(2.10) is 2.0 | round(2.10) is 2.0 | ceil(2.10) is 3.0 | floor(2.10) is
2.0
rint(2.20) is