[Issue 5687] std.string.format() error with "%a"

2012-04-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5687 Stewart Gordon changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 5687] std.string.format() error with "%a"

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5687 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #

[Issue 5687] std.string.format() error with "%a"

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5687 --- Comment #4 from Lars T. Kyllingstad 2011-03-03 01:57:22 PST --- (In reply to comment #2) > Is it actually true that %A on Linux for doubles always begins with 0x1. ? Having tested with a large number of random doubles, that certainly see

[Issue 5687] std.string.format() error with "%a"

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5687 --- Comment #3 from Don 2011-03-03 01:17:33 PST --- On Windows: import std.stdio; import std.string; void main() { writefln("%a", 1.2); writeln(format("%a", 1.2)); } --- 0x1.3p+0 0x1.3p+0 --- This bug i

[Issue 5687] std.string.format() error with "%a"

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5687 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #2 from Don 2

[Issue 5687] std.string.format() error with "%a"

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5687 --- Comment #1 from Lars T. Kyllingstad 2011-03-03 00:27:42 PST --- I've found the cause for this: 1.2 is a double, and should be formatted as such, but it is converted to a real internally in std.format.doFormat(). I think the right way to