title: implement divide algorithm without using "/" for floating point
body: <p>please if there is any specific algorithm for implementing the divide operator as a function, guide me about their name. I want to implement a function that takes two floating number and return the result of the divide, but in implementation, I won't use &quot;/&quot;.
  I have done this in a much simpler version when we want just the q in integer,</p>
  <pre><code>function divide(num0, num1) {
    if (&quot;bigint&quot; != typeof num0 || &quot;bigint&quot; != typeof num1) {
      throw new TypeError(&quot;The arguments should be bigint.&quot;);
    }
  
    if (num1 &gt; num0) {
      return 0;
    }
  
    for (var i = 0n; num0 &gt;= num1; i++) {
      num0 -= num1;
    }
  
    return i;
  }
  </code></pre>
  <p>&quot;I use bigint numeric type just two restrict to integer&quot;</p>
  <p>but I think this approach couldn't extend two return floating results. my guess is I approach binary level operation or so; thanks if learning me about any flowchart, pseudo-code, or code-snippet &quot;in any language&quot; to deal with this problem</p>