Content deleted Content added
new and improved and ready for testing |
fix some weirdness with the negative button. |
||
Line 19:
-- This is sketch because x should happen before decimal.
function pressNumber(n)
return { {'x', 'ifequal(decimal,0,not(displayY)*x*10+(ifpositive(not(displayY)*x,1,-1))*' .. n .. ','
.. 'x+(ifpositive(x,1,-1))*(' .. n .. '/pow(10,decimal)))'},
{'decimal','ifzero(decimal,0,decimal+1)'},
|