B
bacrobidia
i'm writing really frustrated by this stupid problem i try to print a
double (or maybe float) variable with system.out.println but it shows
only 0.0!!!
this is the code
double value = 345/1000;
System.out.println(value);
it just prints 0.0 what the hell is the problem? i'm sure it is a sort
of fucking cast problem but i've tried them all (also printf)
thanks
double (or maybe float) variable with system.out.println but it shows
only 0.0!!!
this is the code
double value = 345/1000;
System.out.println(value);
it just prints 0.0 what the hell is the problem? i'm sure it is a sort
of fucking cast problem but i've tried them all (also printf)
thanks