RUST appears to diddle, but then that is probably the result of the iron oxide coating:
>type src\main.rs fn main() { println!("{} {}", -0.0, 0.0); println!("{:?} {:?}", -0.0, 0.0); } >cargo rr Compiling demo v0.1.0 Finished release [optimized] target(s) in 0.44s Running `target\release\demo.exe` 0 0 -0.0 0.0 --- The fact that there's a Highway to Hell but only a Stairway to Heaven says a lot about anticipated traffic volume. >-----Original Message----- >From: sqlite-users [mailto:sqlite-users- >boun...@mailinglists.sqlite.org] On Behalf Of Keith Medcalf >Sent: Wednesday, 12 June, 2019 10:28 >To: SQLite mailing list >Subject: Re: [sqlite] Should SQLite distinguish between +0.0 and -0.0 >on output? > > >On Wednesday, 12 June, 2019 10:02, James K. Lowden ><jklow...@schemamania.org> 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 >sqlite-users@mailinglists.sqlite.org >http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users