Float variables in ocaml

Let f(X)= X*X ;;
Val f : int-> int->. = <Fun. >
My question is what will be the float version of this
That is when X takes a float value and returns a float or integer value

let f x = x *. x

Mathematical operators are not overloaded, you have to use specific versions for ints (+ - * /) and floats (+. -. *. /.)

I am using an online compiler.
Is it going to be a problem??

What is the compiler, and what problem are you thinking of?