why here a int and not a float ?

"Roelof Wobben [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
 Hello,



I try to learn Ocaml by following the Ocaml from the very beginning.



I have to write a function that multiplies a number by 10.



So I did :  let multiply_ten x = x * 10 ;;



but to my surprise I see that the function has this : 
val multiply_ten : int -> int = <fun>



How can I change it so I can also calculate 2.5 * 10 ?



Roelof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.