I do know i'm a beginner but this is strange for me.
double x=1/4
gives me 0.0 (exactly like that), but
double x=1/4.0 or x=1.0/4
gives me 0.25.
Is it normal???
I do know i'm a beginner but this is strange for me.
double x=1/4
gives me 0.0 (exactly like that), but
double x=1/4.0 or x=1.0/4
gives me 0.25.
Is it normal???