On Jun 12, 2019, at 10:45 AM, Richard Hipp <d...@sqlite.org> wrote: > > On 6/12/19, 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. > > Prints -0.0 as "-0.0" or just "-0": glibc, Tcl, Python, Javascript
Chrome’s JS engine (V8, shared with Node.js) does it both ways, depending on context: > a = -0.0; -0 > console.log(a) -0 > JSON.stringify(a) "0” > JSON.stringify( { a: a} ) "{"a":0}” > alert(a) Says “0” Two different versions of Perl (5.16.3 on CentOS 7 and 5.18.4 on macOS 10.14.5) prints “0” via all three paths I’ve tried: print(), say(), and Data::Dumper. Clang on macOS agrees with your glibc result, for both printf() and cout. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users