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="/api/flow.js?q=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fratajs%2FAdvanced-Division-js%401.2%2FAdvDiv.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/