On Wednesday, 12 June, 2019 10:02, James K. Lowden <[email protected]>
wrote:
>1. Prior art. I can't think of a single programming language that
>displays -0.0 without jumping through hoops.
---//--- t.c ---//---
#include <stdio.h>
int main(int argc, char** argv)
{
printf("%f %f\n", -0.0, 0.0);
}
---//--- t.c ---//---
Microsoft (R) C/C++ Optimizing Compiler Version 19.21.27702.2 for x64
>cl t.c
>t
-0.000000 0.000000
gcc version 8.1.0 (x86_64-win32-sjlj-rev0, Built by MinGW-W64 project
>gcc t.c
>a
-0.000000 0.000000
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?
---
The fact that there's a Highway to Hell but only a Stairway to Heaven says a
lot about anticipated traffic volume.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users