On Wed, 12 Jun 2019 10:28:20 -0600
"Keith Medcalf" <[email protected]> wrote:
> Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916
> 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or
> "license" for more information.
> >>> a = -0.0
> >>> b = 0.0
> >>> print(a,b)
> -0.0 0.0
>
> Really difficult hoops to jump through are they not?
$ printf "%f\n" -0.0
-0.000000
A poor choice of words. What I meant was, what kind of computation
would lead to a value in memory representing -0,0? I don't remember
ever coming across one.
Just because we can print -0.0 doesn't mean it's meaningful.
#include <stdio.h>
int main() {
if( -0.0 == 0.0 ) {
printf("all zeros are zero\n");
return 0;
}
printf("minus zero is real\n");
return 1;
}
make negzero && ./negzero
cc negzero.c -o negzero
all zeros are zero
--jkl
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users