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#integerliteralIf you scroll down from there you'll also see what counts as a floating point literal and why.