I am having trouble compiling the following piece of code, it keeps giving me an error talking about an possible loss of precision. I know i could replace the one line to:
private float someNum = 0;
but i don't like that becuase it is assigning an int to a float ... yes yes i know that the compiler will use coersion and cast it off to a float, but is there a way around this?!?
class test
{
private float someNum = 0.0;
public static void main(String[] args) {}
}