Skip to content

Commit 9e58682

Browse files
authored
Update README.md
1 parent b45e90e commit 9e58682

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# Advanced-Division-dart
22
Divide two numbers using recurring decimals
3+
4+
You can use the `advdiv` function with this syntax:
5+
6+
<code>
7+
advdiv(double n1, double, n2, int r, String rstr = "[", String rstr2 = "]")
8+
</code>
9+
10+
This function relies on the `times10` function, which is eke in this file.
11+
12+
* n1 – first number
13+
* n2 – second number
14+
* r – recurring decimals of the first number (default 0)
15+
* rstr1 – string to be inserted before recursive decimals (default "[")
16+
* rstr2 – string to be inserted after recursive decimals (default "[")
17+
18+
You can also use it as a console application (download it from the “Releases” section), examples:
19+
20+
<pre>$ ./advdiv 1 6
21+
0.1[6]</pre>
22+
23+
<pre>$ ./advdiv 1 7
24+
0.[142857]</pre>
25+
26+
<pre>$ ./advdiv 123.1 7.54 24
27+
16.[329475122578570854432923398440639819950164777750984647536371674302708785467406157061]</pre>

0 commit comments

Comments
 (0)