What is the one that you use most frequently?
Printable View
What is the one that you use most frequently?
Mostly integer I guess. It depends though on what I need the program to do, what it is for, etc. etc. etc.
long double...
80-bit rules!!
Whoops, I meant Double Long, not Double Float. Sorry. Well, I like double long, holds a lot, but doesn't need an F at the end.
ints are great.
doubles are used a lot for 3d graphics...which i havent gotten into yet, so i still mostly use the good ol' ints.
Integers
i hve actualy never had a need for anything besides ints and chars. hey, i just learned how to use char as a number... that might work...
Actually the requirement dictates it for me ... given the choice, i choose int ...
cheers,
>3d graphics
you could use fixed point math... this would rid you of needing to use the FPU excessively and save you a lot of time [run-time, that is...]... eventually the usage of various variable types cannot be generalized such...
but in 32-bit compilers such as GCC or Visual C++, an integer is the same thing as a Long, isn't it?
I always do
int i;
wait no, I don't, I use the variable i for for's, maybe something like
int MyIntegerVariableWhichDoesNothingAtAll;
ask Null Shinji, he knows how I name variables and functions :D
Oskilian
Integers aren't neccesary numeric. Iterating through an array is not really all that mathematical, but ya sure as hell don't want to do it with floats.
Code:double anti;
printf ("%ld", anti);
-----
SIGSEGV..........
DA: LOL
Has anyone ever made some bitwise using Long Integer's (128 bit in DJGPP)?
Oskilian
128-bit? What do you mean?