Skip to content

ratajs/Advanced-Division-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Advanced-Division

Divide two numbers using recurring decimals

Use this code to include the library:

<script src="https://cdn.jsdelivr.net/gh/ratajs/Advanced-Division-js@1.2/AdvDiv.min.js" type="text/javascript" integrity="sha384-V0RdxveNPPBfIo4374oMkSjSkDBFh29wOCfIATs+/0CetZk8Bsr9rVZYNF3hedi8" crossorigin="anonymous"></script>

Syntax: advdiv(n1, n2, minstr, decstr, rstr1, rstr2)

  • n1 – the first number as string
  • n2 – the second number as string
  • minstr – string representing the minus sign
  • decstr – string separating the decimal digits
  • rstr1 – string of the recursion beginning
  • rstr2 – string of the recursion end

Here is an online demo: https://advdiv.ratajs.cz/demo.html

Learn more: https://advdiv.ratajs.cz/