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lbnQgb3BlcmF0aW9uLg==
Comments & ratings
Participant feedback and public notes for this demo.
Public comments
Notes left by visitors.
No public comments yet. Start the conversation below.
Leave a public comment
Your comment appears publicly after the human check.
small and cute!! >.<
no comment
nothing creative, nothing thematic, but works
Impressive to get a fully working calculator within 1024B, but not particularly creative or fitting with the theme
no comment
Great
Love the code. Eval takes care of precedence and such.
A simple calculator with memory. Uses up almost all available bytes and doesn't seem to be very optimized.
no comment
Very well executed with edge cases taken care of, but a bit too serious ... not exactly what one would expect for a fun demo contest.
Neat! Note that calculators usually round display values to 10 s.f in order to hide compounding representation errors from users, i.e so that 0.1 + 0.2 = 0.3
Pretty neat. The JS part can be minified more using a crusher to give more space for styling.