[Issue 366] New: Adding trailing zeros to a real literal makes it smaller!
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 25 08:30:04 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=366
Summary: Adding trailing zeros to a real literal makes it
smaller!
Product: D
Version: 0.168
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
I know that conversions of decimal literals to floating point is always a bit
dodgy -- but this particular behaviour is hard to understand. Happens with lots
of numbers.
static assert(
0.6600_0112_2408_4800_3227e-8L <=
0.6600_0112_2408_4800_32270000e-8L);
--
More information about the Digitalmars-d-bugs
mailing list