Maths question divide by 100

Hello all, new to this forum.
Obviously misunderstood something basic but I would have expected the following code to return 50.42 but returns 50.00
Any help gratefully received.

void setup() {
  Serial.begin(115200);
}

void loop(){
int number = 5042;
float split = number / 100;
Serial.println(split);
delay(5000);
}

Steve

float split = number / 100.0;

If both operands are of integer data types, the compiler will perform an integer division.

Many thanks for your fast replies and help, that's sorted that out.

Steve