alright so i understand byte short int long, but i have no clue what anything ment on the page i read about float, double, and decimal type..
double pi = 3.14159265358979323846;
float anotherPi = 3.1415926f;
dont understand whats the point of adding an "f"…
i even read about it dont understand.
then u have.
long aBignumber = 39358593258529L;
ulong bigOne = 2985825802805280508UL;
u say that sticking a 'u' or 'U' on the end ofan integer litaral to show that it is supposed to be an unsigned integer literal.
the 'L' and 'UL' is just for you to understand?
the computer doesnt care about the 'L' and 'UL' just something you reference with right?
so to summarize.. do i really need float and double…?
because there pretty much just like long.. just wayy bigger im pretty sure. and i don't think anyone will ever have a number that is needed for float and double.. lol.
but im a little confused.
double usses 8 bytes.
float usses 4 bytes.
int usses 4 bytes
long usses 8 bytes..
why not just use int and long, seems like all 4 do the same thing. Im just unsure of what the letters do?
can i add the letters to the int and long O.o..