21210c5c07
Currently calculations such as 22/7 do not work correctly on the simulator (which uses double precision floating point). Fix this by explicitly truncating the strings when needed. Additionally the current calculate() method has some problems when the calculation cannot be evaluated since it will needlessly clear out the calculation. Push calculate (and the exception handling) into the caller and report errors using the vibration motor instead. Finally we rename display_output() to the more idiomatic _update(). Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk> |
||
---|---|---|
.. | ||
alarm.py | ||
calc.py | ||
chrono.py | ||
clock.py | ||
demo.py | ||
fibonacci_clock.py | ||
flashlight.py | ||
gameoflife.py | ||
haiku.py | ||
heart.py | ||
hello.py | ||
launcher.py | ||
musicplayer.py | ||
pager.py | ||
settings.py | ||
snake.py | ||
steps.py | ||
stopwatch.py | ||
template.py | ||
testapp.py |