Skip to content

Commit

Permalink
Update README for the next version
Browse files Browse the repository at this point in the history
  • Loading branch information
ratajs committed Aug 28, 2023
1 parent 1fbb297 commit a1b6766
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ If you have Python installed, you can test this from the command line, such as <
Import this library using <code>import AdvDiv</code>

Syntax:
<code>AdvDiv.div(n1, n2, r1, str1, rstr2)</code>
* n1 – first number
* n2 – second number
* r – recurring decimals of the first number (default 0)
<code>AdvDiv.div(n1, n2, minstr, decstr, str1, rstr2)</code>
* n1 – the first number
* n2 – the second number
* minstr – string representing the minus sign (default "-")
* decstr – string separating the decimal digits (default ".")
* rstr1 – string of the recursion beginning (default "[")
* rstr2 – string of the recursion end (default "]")
## Examples:
<code>print(AdvDiv.div(1, 6))</code>
<code>print(AdvDiv.div("1", "6"))</code>

<pre>0.1[6]</pre>

<code>print(AdvDiv.div(1, 7))</code>
<code>print(AdvDiv.div("1", "7"))</code>

<pre>0.[142857]</pre>

<code>print(AdvDiv.div(123.1, 7.54, 24))</code>
<code>print(AdvDiv.div("123.1[24]", "7.54"))</code>

<pre>16.[329475122578570854432923398440639819950164777750984647536371674302708785467406157061]</pre>

Expand Down

0 comments on commit a1b6766

Please sign in to comment.