Hey, Dave, are you well ?
feeling better today, Rui - thank you for asking
i will be back to normal in a couple days or so :P
ConvertFloat8DS 3.141592653589793
sprintf_s 3.1415926535897931
this is one of the finer points where Jochen and i disagree
the last digit does not to be correct to be considered "usable"
if we look at a few more digits of Pi...
3.1415926535897932385
you can see that 3.1415926535897931 is closer to the actual value of Pi than 3.141592653589793
so, even though the digit is incorrect, it is usable
in fact, any value from 3.1415926535897931 to 3.1415926535897934 is closer than 3.141592653589793
to understand the logic in this.....
it is a 1 vs 2 digit because we happen to be converting to base 10
if we were converting to some other base, it may actually be a correct digit
should we disregard extra information, simply because we chose base 10 ?
the fact that we are converting to base 10 should be somewhat inconsequential
of course, we have to end the string someplace, so the base does make a difference
in truth, we shouldn't look at real Pi, we should look at the numbers that may be represented with extra precision :P
400921FB_54442D17: +3.1415926535897926719
400921FB_54442D18: +3.141592653589793116
400921FB_54442D19: +3.1415926535897935601
...31 is as close as we can get with real8