david-yz-liu / memory-viz

Javascript library for creating beginner-friendly memory model diagrams.
https://www.cs.toronto.edu/~david/memory-viz/demo/
2 stars 7 forks source link

Trailing zeroes not appearing for objects of type 'float' #37

Open sarahsonder opened 5 months ago

sarahsonder commented 5 months ago

Problem: When generating visualizations for objects of type float, the images do not show the trailing zeroes.

Current behaviour: Input: [ { "name": "float", "id": 13, "value": 7.0 } ] Output: image

Expected behaviour: it should show 7.0 as opposed to 7.

Note that this problem only occurs with trailing zeroes. Other values such as 7.123 display properly.