Uh, what? The fact that it's a constant means that it fits in a float? That's... not really true, is it?
Besides, the number shown in the image is 1.6, which neither floats nor doubles can precisely represent. However, a double can represent it much more precisely, so I still don't see the issue with using a double here.
View all comments
Show parent comment
18
u/fast4shoot Jun 11 '21
Uh, what? The fact that it's a constant means that it fits in a float? That's... not really true, is it?
Besides, the number shown in the image is 1.6, which neither floats nor doubles can precisely represent. However, a double can represent it much more precisely, so I still don't see the issue with using a double here.