8 votes

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

Luckily this is quite simple to make clear, even if you are steering clear of the IEEE standard. Honestly, even binary is not needed here. I would start by borrowing a page from Scheme, and say that ...
user avatar
  • 31.5k
6 votes
Accepted

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

Better yet, is there any way I can show the students such an explanation? (Perhaps an online, interactive demonstration of floating point precision etc. - I couldn't find one) Show them these bits of ...
user avatar
5 votes

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

Tell the students they have seven decimal digits of precision in a float, and that the decimal point is placed "somewhere" within those seven digits, depending on the magnitude of the number. Ask ...
user avatar
  • 401
5 votes
Accepted

NodeJS and Javascript libraries are overwhelming students

Summary Node.js has an unusually complex ecosystem which you don't get in some other languages. Your students spending time to intelligently pick the best libraries is great, but you might need to ...
user avatar
  • 3,485
4 votes

NodeJS and Javascript libraries are overwhelming students

How would you do it yourself? If you are already effective at it, then show them how you approach it. Tell them where you look, and tell them how you decide that it is ok to stop exploring further for ...
user avatar
  • 34.9k
2 votes

NodeJS and Javascript libraries are overwhelming students

This sounds like a question of vetting. Here are some things I do when evaluating Node.js libraries: Find the package in npmjs.com and view the stats (e.g., daily/weekly/monthly downloads). You can ...
user avatar
  • 1,044
2 votes

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

Actually, it isn't quite so clear. If I run this in Java: ...
user avatar
  • 34.9k
1 vote

History of educational programming languages

I have a partial answer for you, about why BASIC and home computers in the early 1980's were so helpful to learning: it is how accessible everything was. A kid could look inside the case and see what ...
user avatar
1 vote

History of educational programming languages

I'd suggest you reconsider. To understand e.g. why Pascal is a nice teaching language you need to have a decent background in programming languages, some notion of teaching programming (the ...
user avatar
  • 604
1 vote

At what age should someone know what they want to "be"?

Actually, there is no such age for everyone, and it certainly isn't a disaster for many to be undecided. Many people just want to be educated so they study things, formally and informally with no ...
user avatar
  • 34.9k
1 vote

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

Simple demonstration of "precision" using handheld calculators. Get a pair of calculators. One cheap model that has a limited number of digits in its display. Models can be found built in to ...
user avatar
1 vote

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

Many compilers will promote floats to doubles, do the calculation, and cast back. I see little or no reason to use floats unless one is dealing with huge matrices of floating-point numbers. I ...
user avatar
  • 2,279

Only top scored, non community-wiki answers of a minimum length are eligible