Skip to content

Commit

Permalink
Update README for the next release
Browse files Browse the repository at this point in the history
  • Loading branch information
ratajs committed Aug 28, 2023
1 parent c47104e commit 34bf552
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ Divide two numbers using recurring decimals

Import code:
<code>
import 'AdvDiv.dart';
import 'AdvDiv.dart';
</code>


You can use the `advdiv` function with this syntax:

<code>
advdiv(double n1, double n2, int r, String rstr = "[", String rstr2 = "]")
advdiv(String n1, String n2, String minstr = "-", String decstr = ".", String rstr = "[", String rstr2 = "]")
</code>

* n1 – first number
* n2 – second number
* r – recurring decimals of the first number (default 0)
* minstr – string representing the minus sign (default "-")
* decstr – string separating the decimal digits (default ".")
* rstr1 – string to be inserted before recursive decimals (default "[")
* rstr2 – string to be inserted after recursive decimals (default "]")

Expand All @@ -29,7 +30,7 @@ You can also use it as a console application (download it from the “Releases
<pre>$ ./advdiv 1 7
0.[142857]</pre>

<pre>$ ./advdiv 123.1 7.54 24
<pre>$ ./advdiv "123.1[24]" 7.54
16.[329475122578570854432923398440639819950164777750984647536371674302708785467406157061]</pre>

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

0 comments on commit 34bf552

Please sign in to comment.