[Vala] converting from float to double?



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




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