Re: [Vala] converting from float to double?
- From: Martin Olsson <mnemo minimum se>
- To: Yu Feng <rainwoodman gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] converting from float to double?
- Date: Sun, 14 Dec 2008 06:13:20 +0100
To describe a float literal use a trailing "f" like this:
float x = 12.34f;
Martin
Yu Feng wrote:
Greetings,
I am receiving compiler errors for this:
float a = 0.0;
Shouldn't this be converted automatically?
I use
float a = (float)0.0
as a correction.
But doesn't it look non-intuitive?
Regards,
Yu
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]