X
xian_hong2046
Hello,
I'm a bit confused about when to use trailing characters such as "L",
"F" and "D" for literals. For example, if I have a double, then
naturally I'll have something like:
double j = 42;
Then why would I bother to use
int j = 42D;
Similarly for other trailing characters.
Many thanks,
xian
I'm a bit confused about when to use trailing characters such as "L",
"F" and "D" for literals. For example, if I have a double, then
naturally I'll have something like:
double j = 42;
Then why would I bother to use
int j = 42D;
Similarly for other trailing characters.
Many thanks,
xian