Storing Data from a Keypad

Hello

I am still relatively new to programming a arduino, and i am trying to put together a little project that has a variety of different parts/code to try teach myself. I am looking at inputing data from a keypad then pressing a key to act as enter to then be displayed on a lcd ( e.g a set temperature), i was wondering what would be the best way to store the individual numbers to make up a 2-4 digit number, and then if possible to format the number to one or two decimal place eg. if 25 then enter was pressed it would display 25.00 on the lcd?

Thanks

i was wondering what would be the best way to store the individual numbers to make up a 2-4 digit number,

If you want the number as an actual number rather than a textual representation of it then calculate it as you go along.

Actual numbers : When a digit is entered subtract '0' from it to get the real number rather than text, multiply the running total by 10 and add the new number. Repeat until the end of input character is received. Process the number as required.

Numbers as text : When a digit is entered put it into the current position in an array of chars and increment the index variable ready for the next digit. Put a zero in the current array position to terminate the string. Repeat until the end of input character is received. Process the string as required.

UKHeliBob:
Actual numbers : When a digit is entered subtract '0' from it to get the real number rather than text, multiply the running total by 10 and add the new number. Repeat until the end of input character is received. Process the number as required.

Thanks for the quick reply, i am still abit new to the arduino what would be the best way to do this?
Is there any reference that would be worth me checking out to get a better understanding on how to do so?

Thanks

I have never used the Keypad library but it probably comes with examples.

i am still abit new to the arduino what would be the best way to do this?

Try something. If it doesn't work, post here to get help figuring out why not.