I have an integer variable which casts into a floating point number as soon as i divide it. I need to stop this from happening
I've tried explicitly casting the variable after declaring it using the int() function but it still converted to a float as soon as i divided it
x = 5
int(x)
x = x/2
type(x)
I expect the output of x/2 since its an integer but the output is 2.5, and when i run it through the type() function it returns a float