Re: [Vala] Float literal parsing and redundant fractional digits
- From: Sergej Reich <sergej reich googlemail com>
- To: Leszek Godlewski <lg inequation org>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Float literal parsing and redundant fractional digits
- Date: Fri, 06 Apr 2012 20:59:07 +0200
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]