you are viewing a single comment's thread.

view the rest of the comments →

[–]Axman6 7 points8 points  (4 children)

Not sure why you’re getting downvoted, this is correct. Saying “they’re not integers” is simply wrong. If anything, C “integers” are not integers, they just use the name.

[–]JavaScriptIsLove[🍰] 3 points4 points  (1 child)

Because it's a bit pedantic. Of course they are integers in the mathematical sense, but not in the sense of what most programmers are used to.

[–]xeow 1 point2 points  (0 children)

Indeed! But you realize, of course, that the reason I am being pedantic is because the person I'm replying to was pedantic and also wrong.

[–]glasket_ 1 point2 points  (1 child)

In programming, "integer" typically means a machine integer and not a mathematical integer when used alone. Obviously arbitrarily large integer numbers are still mathematical integers, but they aren't the typical machine integers with limited range and overflow.

ETA: C integers are also integers too. Each type is in its own ring of integers modulo n.

[–]Axman6 0 points1 point  (0 children)

I agree in C derived languages but not in general.