<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Alan,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 5. Dec 2021, at 23:07, Linus Torvalds <<a href="mailto:torvalds@linux-foundation.org" class="">torvalds@linux-foundation.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Sun, Dec 5, 2021 at 2:03 PM Robert Helling via subsurface<br class=""><<a href="mailto:subsurface@subsurface-divelog.org" class="">subsurface@subsurface-divelog.org</a>> wrote:<br class=""><blockquote type="cite" class=""><br class=""> depth * 1000.0 / 1000.0 which for a depth of 30m seemed to end up just a tiny bit below 30.<br class=""></blockquote><br class="">That implies that we (once again) didn't do proper rounding.<br class=""><br class="">I suspect just short-circuiting it for zero helium hides the problem<br class="">rather than fixing it.<br class=""><br class="">          Linus<br class=""></div></div></blockquote></div><br class=""><div class="">what does the test program on <a href="https://www.cplusplus.com/reference/cfenv/fegetround/" class="">https://www.cplusplus.com/reference/cfenv/fegetround/</a> produce on your machine? I am a but afraid to explicitly set the rounding mode just to be sure as that (according to my understanding of the docs I found) might cause the compiler to think we are doing strange stuff.</div><div class=""><br class=""></div><div class="">Best</div><div class="">Robert</div></body></html>