literals
Robert Clipsham
robert at octarineparrot.com
Sun Mar 28 05:08:27 PDT 2010
On 28/03/10 12:02, so wrote:
> Hello, after a little discussion on D.learn, i better ask this here
> since i didn't get much replies.
> Two lil questions.
>
> Why "3" is an int?
> Why "0.3" is a double?
>
> Thanks!
This should help you understand:
http://digitalmars.com/d/2.0/lex.html#integerliteral
If you scroll down from there you'll also see what counts as a floating
point literal and why.
More information about the Digitalmars-d
mailing list