[Issue 6277] Disallow short floating point literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 10 08:27:07 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6277
--- Comment #2 from bearophile_hugs at eml.cc 2011-07-10 08:21:56 PDT ---
If this idea gets accepted then I think it's worth changing the other direction
too, I mean the default printing of a floating point value with no decimal
part:
import std.stdio;
void main() {
double x = 3.0;
writeln(x);
}
Currently (2.054beta3. I'd like beta releases to show a progressive beta number
too) this prints:
3
Python here prints 3.0 and I think D is better to do the same, especially if
the leading zero becomes required for the FP literals.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list