On 17 Jun 2012, at 12:06am, Etienne <ejlist-sql...@yahoo.fr> wrote: > Is there a trick (in the sys. libraries mentioned above, or through the win32 > C API) for changing the way the FPU handles (long) doubles?
You're at tricky low level detail now. Rounding and truncation modes used by chips which implement IEEE754 are often carefully set by compiler writers to get the results they want. If you mess with the settings they've chosen, you can get unexpected results in other apps which were previously working correctly. Ideally, you write your software so that differences in the 15th decimal place don't matter to you. If you want two platforms to give identical results you use integer arithmetic. It really depends on what kind of application you're writing (scientific, financial) or what your numbers actually represent. It's discovering and caring about this sort of thing that separates out the professional programmer from the someone who shouldn't be paid for programming. I do appreciate your thanks, by the way. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users