Store IR read value to variable in DEC?

I am very confused how to do this I want to store the last IR decode result into the variable "lastread" which is an int but doesnt has to be one.
Thanks for your help I can't find the right solution

#include <LiquidCrystal.h>
#include <IRremote.h>

int menupoint = 1;
int lastread = 0;

// buttons
 int up = 13;
 int down = 2;
 //irled 5
 //irin 6
 int ok = 4;
 int back = 3;
 int RECV_PIN = 6;
IRrecv irrecv(RECV_PIN);
decode_results results;


int menu = 0;                       
byte customChar1[8] = {
  0b00100,
  0b01110,
  0b10101,
  0b00100,
  0b00100,
  0b00100,
  0b00000,
  0b00000
};
byte customChar2[8] = {
  0b00000,
  0b00000,
  0b00100,
  0b00100,
  0b00100,
  0b10101,
  0b01110,
  0b00100
};

int buttonupstate = 0;
int buttonokstate = 0;
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
  pinMode(up, INPUT);
  pinMode(ok, INPUT);
  

  
Serial.begin(9600); 
irrecv.enableIRIn();

  
  // put your setup code here, to run once:
lcd.begin(16,2);

lcd.createChar(0, customChar1);
lcd.createChar(1, customChar2);
lcd.setCursor(0, 0);
lcd.print("IR Toolkit"); 
lcd.write(byte(0));
lcd.write(byte(1));
lcd.setCursor(0, 1);
lcd.print("Tim Hunneck");
delay(500);
lcd.clear();
}

void loop() {
  buttonokstate=digitalRead(ok);
  buttonupstate=digitalRead(up);

*/
if(menupoint == 1)
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("inputanalyse");
lcd.setCursor(15,0);
lcd.write(byte(0));
lcd.setCursor(0, 1);
lcd.write("sendLastInput");
lcd.setCursor(15,1);
lcd.write(byte(1));
}
if(menupoint == 2)
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("sendLastInput");
lcd.setCursor(15,0);
lcd.write(byte(0));
lcd.setCursor(0, 1);

}


if(buttonupstate == HIGH && menupoint == 1)
{
  menupoint = 2;
}

if(buttonokstate == HIGH && menupoint == 1)
{
  menupoint = 10;
}
if(menupoint == 10)
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("inputanalyse");
lcd.setCursor(15,0);

if (irrecv.decode(&results)){
lcd.setCursor(0, 1);
lastread=(results.value, DEC); //I have no idea how to do this properbly this doesnt work
Serial.println(results.value, DEC);// shoould be stored like the value that this outputs
Serial.println("latestInput");

lcd.setCursor(14, 0);
lcd.print("ok");
delay(500);
irrecv.resume();
}
lcd.setCursor(0,1);
lcd.print(lastread);

}
delay(100);
}

This

*/

does not belong.

This

lastread=(results.value, DEC); //I have no idea how to do this properbly this doesnt work

should just be this

lastread=results.value;

In the future, to post code and/or error messages:

  1. Use CTRL-T in the Arduino IDE to autoformat your complete code.
  2. Paste the complete autoformatted code between code tags (the </> button)
    so that we can easily see and deal with your code.
  3. Paste the complete error message between code tags (the </> button)
    so that we can easily see and deal with your messages.
  4. If you already posted without code tags, you may add the code tags by
    editing your post. Do not change your existing posts in any other way.
    You may make additional posts as needed.
  5. Please provide links to any libraries that are used
    (look for statements in your code that look like #include ). Many libraries
    are named the same but have different contents.

Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.

If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a clear photograph of the wiring.

Good Luck!

Keep in mind that you simply cannot store a number as a decimal number. All numbers in any computer are stored as binary. Hex and dec and oct are just representations that the computer lets you use to input or display a number in a human readable format. But the number itself is the same in any of those systems. And in the processor they are all stored as binary. The only place where you need to worry about the format of a number is when you are printing it or taking in an ascii string and trying to convert it to a number.