Fullscreen width and height variables returning 100

I am having the same problem, and I don’t really understand what you’re saying. I use “width” after I define the size:

void setup() {
  fullScreen();
  background(255);
}

float y=width;

void draw() {
  text(y,109,109);
//After here is just the exit button
  fill(255);
  rect(20, 20, 50, 30);
  fill(0);
  text("Exit", 30, 40);
}
void mousePressed() {
  if (mouseX >= 20 && mouseX < 70&&mouseY >= 20 && mouseY < 50) {
      exit();
    }
}
}

P.S. The extra code is just a “exit” button