From 35310f05962906d6f8a1c6c1914103f4ba960379 Mon Sep 17 00:00:00 2001 From: rob tillaart Date: Sun, 1 Mar 2015 14:19:14 +0100 Subject: [PATCH] + added readme.txt --- libraries/Fraction/readme.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libraries/Fraction/readme.txt diff --git a/libraries/Fraction/readme.txt b/libraries/Fraction/readme.txt new file mode 100644 index 00000000..0c557acb --- /dev/null +++ b/libraries/Fraction/readme.txt @@ -0,0 +1,12 @@ + +Fraction is an experimental fraction library for the Arduino. +The code is working with a number of limitations among others: +- denominator is max 4 digits to keep code for multiply and divide simple +- therefore not all fractions are exact +- the range of numbers supported is limited. + +That said, the library is useful e.g. to display float numbers as a fraction. +From programming point of view the fractionize function, converting a double +into a fraction is a nice programming problem, fast with a minimal error. + +In short, use fractions with care otherwise your sketch might get broken ;) \ No newline at end of file