Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Is i an integer?

Name: Anonymous 2010-11-17 2:23

I couldn't find an answer to this anywhere, is it?

Name: Joey Cocco 2011-01-24 14:05

Well it depends. Assuming if "i" is a variable, then it would depend on the value type it is. If it was an integer (a number without decimals), then yes it is. If the data type is a double or float, then no it isn't. Here's a myth that I'm about to bust. What if a variable datatype is a double, but the value is an integer? Is it a integer or is it still a double? The answer to that question is that it isn't an integer, because the compiler reads that number as 4.0 instead of 4, therefore not making it a integer. I hope this answers your question.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List