hullo,
float f = 30.0;
a compilation error results;
float f = 30;
there's no error, when i print this out it is 30.0;
why is this so? i thought float is a floating-point number? does floating-point number come with decimal places?
and... this is ok,
float f = 30.0f;
what is the f behind it and why can it be used this time round?
and putting a 'd' behind makes it related to double also?
thanks...
confused greenhorn
---
maybe this is too basic, i can't seem to find info abt these online
[ October 25, 2004: Message edited by: Fendel Coulptz ]