If your input can only be a positive float, then, as already mentioned, the floor works.
floor(1.2)
However, if your integer may also be negative, then the gender may not give you what you want: it is always rounded even for negative numbers. Instead, you can use int as the other mentioned message. This will give you the correct result for both negative and positive numbers.
(int)-1.2
Mark byers
source share