Alan, > On 5. Dec 2021, at 23:07, Linus Torvalds <[email protected]> > wrote: > > On Sun, Dec 5, 2021 at 2:03 PM Robert Helling via subsurface > <[email protected]> wrote: >> >> depth * 1000.0 / 1000.0 which for a depth of 30m seemed to end up just a >> tiny bit below 30. > > That implies that we (once again) didn't do proper rounding. > > I suspect just short-circuiting it for zero helium hides the problem > rather than fixing it. > > Linus
what does the test program on https://www.cplusplus.com/reference/cfenv/fegetround/ <https://www.cplusplus.com/reference/cfenv/fegetround/> 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. Best Robert
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
