Questions tagged [floating-point]

Floating Point is a traditional computer encoding method for numbers of large (or small) size, but limited precision. The bits of the encoding are separated by a mantissa and an exponent. Programming languages usually have a variety of such types trading off word length, precision, and max/min size. Use this tag for teaching such concepts, not for theoretical issues.

Filter by
Sorted by
Tagged with
7
votes
7answers
440 views

Explaining to students why to use double instead of float (unless there's a very good reason)

I keep seeing students use float in lab lessons: For example, a simple physics calculation of kinematics. Many, many students use ...