From 34bf552a5f2d31548b98f5b741c4658e827b49f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Rataj?= Date: Mon, 28 Aug 2023 13:22:22 +0200 Subject: [PATCH] Update README for the next release --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 52b1aa6..92f99b7 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,20 @@ Divide two numbers using recurring decimals Import code: - import 'AdvDiv.dart'; + import 'AdvDiv.dart'; You can use the `advdiv` function with this syntax: - advdiv(double n1, double n2, int r, String rstr = "[", String rstr2 = "]") + advdiv(String n1, String n2, String minstr = "-", String decstr = ".", String rstr = "[", String rstr2 = "]") * 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 "]") @@ -29,7 +30,7 @@ You can also use it as a console application (download it from the “Releases
$ ./advdiv 1 7
 0.[142857]
-
$ ./advdiv 123.1 7.54 24
+
$ ./advdiv "123.1[24]" 7.54
 16.[329475122578570854432923398440639819950164777750984647536371674302708785467406157061]
Learn more: