Any tutorials / examples on creating a calculator?

Hi,

Im planning on creating some medical calculation apps for my girlfriend, but can’t seem to use the values I input with the keyboard.

for example, I can display a string of the number entered by using the .text command, but how can I use the value in a calculation?

Im assuming that I need to convert it from a string to a number, but can’t see how. Can anybody help? Sorry I don’t really have any code at the moment, I’ve just been messing with the keyboard template.

Thanks [import]uid: 8699 topic_id: 6951 reply_id: 306951[/import]

typical, after posting I discovered the tonumber command!

Still, any calcualtor examples would be good! [import]uid: 8699 topic_id: 6951 reply_id: 24311[/import]