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
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list