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
0 votes
1 answer
83 views

What is a fairly exhaustive list for how decimal numbers are written in source code?

What is an exhaustive as possible list of examples of floating-point literals as they are written in source code? That is, the float is not parsed from a text file with arbitrary floats. The float ...
Samuel Muldoon's user avatar
1 vote
1 answer
64 views

Creating a rubric for computer arithmetic

I'd like to move to mastery-based grading and have drafted a set of rubrics for my undergraduate computer architecture class. I am having trouble with the one for computer arithmetic, which includes ...
Ellen Spertus's user avatar
7 votes
7 answers
585 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 ...
ItamarG3's user avatar
  • 6,287