Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ratajs authored Apr 18, 2022
1 parent 2562d84 commit 239eec1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
![](https://raw.githubusercontent.com/ratajs/Advanced-Division/master/imgs/icon.svg)

# Advanced-Division-dart
Divide two numbers using recurring decimals

Import code:
<code>
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(double n1, double, n2, int r, String rstr = "[", String rstr2 = "]")
</code>

This function relies on the `times10` function, which is eke in this file.

* n1 – first number
* n2 – second number
* r – recurring decimals of the first number (default 0)
Expand All @@ -26,4 +32,4 @@ You can also use it as a console application (download it from the “Releases
<pre>$ ./advdiv 123.1 7.54 24
16.[329475122578570854432923398440639819950164777750984647536371674302708785467406157061]</pre>

You can look at the [JavaScript](https://github.com/ratajs/Advanced-Division-js) and [Python](https://github.com/ratajs/Advanced-Division-py) versions as well.
Learn more: <https://advdiv.ratajs.cz>

0 comments on commit 239eec1

Please sign in to comment.