Post Reply 
Apps for the prime.
06-27-2014, 05:47 AM
Post: #12
RE: Apps for the prime.
Hello


>it looked like you couldn't WAIT for less than a second

WAIT(0.5) for 1/2 a second?



>I am only an hour and a half in to using this calculator Smile
Not bad for a newbie!

> key codes could be a little better
Ascii codes would not work as we have too many 'function' keys... it's just a habit I think to have the keys 'numbered'...

>I am in New Zealand so I will have to wait for it to arrive from the states, $140NZD vs ~$300NZD locally made it a no brainer.
When I bought my first HP Calcualtor (HP48SX), they were $200 in the US versus 3000 french franc. This came out as a 2.5 times difference also! One of my uncle bought mine in the states and grought it back!


>x:= floor(random(2, M));
There is a RANDINT function for this...

ReadInt
have you thought about using POS? as in: local id= pos({ 47 42 43 44 37 38 39 32 33 34 30 }, wait(-1))-1;

local ans= "";
while 1 do
textout_p(ans, xPos, yPos);
if id==10 then
rect_p(xPos, yPos, xPos+ 50, yPos+50); return expr(ans);
end;
ans:= ans+id;
end;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Apps for the prime. - Metalnwood - 06-25-2014, 02:00 AM
RE: Apps for the prime. - Metalnwood - 06-25-2014, 05:47 AM
RE: Apps for the prime. - CR Haeger - 06-25-2014, 05:02 PM
RE: Apps for the prime. - HP67 - 06-25-2014, 07:15 AM
RE: Apps for the prime. - Tugdual - 06-25-2014, 12:22 PM
RE: Apps for the prime. - HP67 - 06-25-2014, 12:26 PM
RE: Apps for the prime. - Michael - 06-25-2014, 12:33 PM
RE: Apps for the prime. - Metalnwood - 06-25-2014, 09:32 PM
RE: Apps for the prime. - Metalnwood - 06-26-2014, 07:46 AM
RE: Apps for the prime. - cyrille de brébisson - 06-27-2014 05:47 AM
RE: Apps for the prime. - Metalnwood - 06-27-2014, 06:22 AM



User(s) browsing this thread: 1 Guest(s)