How do i convert the result of the input into an int in F#?
<p>I'm learning f# and doing a function which asks for the user to input a number. The function will then display the users input and if it's a positive or negative number. However, when I try running the program it errors and states that the input is a string instead of an int. I don't know a way to convert the function output into a string.</p>

<pre><code>    open System

let sign num  =
   if num &gt; 0 then "positive"
   elif num &lt; 0 then "negative"
   else "zero"

let main() =
   Console.Write("please enter a number:")
   let input = Console.ReadLine()
   Console.Write("The number {0}", sign 1)
   System.Console.ReadKey() |&gt; ignore


main()
</code></pre>