jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Intentional visualization of numeric precision #276

Open jamesjuett opened 3 years ago

jamesjuett commented 3 years ago

In a bunch of places, the visualization just shows whatever precision is the default behavior for JS. Perhaps tie this to a configured precision on cout?

It would also be neat if there was a dial or something in the UI that you could turn up and down and things would dynamically change. (That might not be tied to cout then - perhaps cout precision should only determine what is printed at the console and the dial controls precision in the visualization.)

This would be useful to get exactly right to demo to students the issues with floating point precision.