Re: [Vala] Float literal parsing and redundant fractional digits

Am Freitag, den 06.04.2012, 20:04 +0200 schrieb Leszek Godlewski:
Is there any good reason why float literals require a fractional digit
after the decimal point to be valid? I'm accustomed to writing
literals in the vein of 1.f and I find having to write 1.0f instead
quite irritating.

I'm not sure if there is a good reason but you can actually just write
1f instead.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]