1 Answers

Best Answer

Recall that int returns the largest integer less than or equal to the number inside it, in this case 2x. To put it more simply, it rounds down to the nearest integer.

For x=1.2,

f(1.2)=int(2*1.2)

f(1.2)=int(2.4)

The integer less than 2.4 is 2 so:

f(1.2)=2

Result:

2

For x=1.2,

f(1.2)=int(2*1.2)

f(1.2)=int(2.4)

The integer less than 2.4 is 2 so:

f(1.2)=2

Result:

2