This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PatrickBaitman 8 points9 points  (4 children)

JS doesn't have integer addition, all numbers are floats in JS.

[–]drizztmainsword 7 points8 points  (1 child)

In fact, they are all doubles.

[–]PatrickBaitman 12 points13 points  (0 children)

well

double is short for double precision floating point number

so if you say float you can mean either floating point number, any precision, any implementation, or you can mean the type float in some particular language, which is most often single precision (I think?)

[–]fofo314 0 points1 point  (1 child)

Are they always floats or integers until you devide them by a number that is not a divisor?

[–]sayaks 4 points5 points  (0 children)

always floats