title: Computing remainder without using modulus operator F#
body: <p>I have implemented my code which is basically to compute remainder in two numbers without using modulus operator however, I am stuck in a situation which is just hectic. I know the logic however I am newbie in f# and dont know how to implement it. </p>
  
  <pre><code>let rec modulus a b =
  if b = 0 Console.WriteLine("Sorry Wrong Divisor")
  let bool neg = a &lt; 0
  a = abs a
  b = abs b
  modulus(val-divisor,divisor)
  </code></pre>
  
  <p>All I know is I am getting a pretty basic mistake here, Any help, </p>