From 2afb42bac5085cee7b1c7fee885e837030d81560 Mon Sep 17 00:00:00 2001 From: Benny Neugebauer Date: Tue, 7 May 2024 07:34:34 +0200 Subject: [PATCH] docs: Fix image link for GitHub Pages --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11667a699..749e31cd1 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Most of the time, the minimum amount of data depends on the interval / time peri JavaScript is very bad with numbers. When calculating `0.1 + 0.2` it shows you `0.30000000000000004`, but the truth is `0.3`. -![JavaScript arithmetic](./js-arithmetic.png) +![JavaScript arithmetic](https://raw.githubusercontent.com/bennycode/trading-signals/HEAD/js-arithmetic.png) As specified by the ECMAScript standard, all arithmetic in JavaScript uses [double-precision floating-point arithmetic](https://en.wikipedia.org/wiki/Double-precision_floating-point_format), which is only accurate until certain extent. To increase the accuracy and avoid miscalculations, the [trading-signals](https://github.com/bennycode/trading-signals) library uses [big.js][1] which offers arbitrary-precision decimal arithmetic. However, this arbitrary accuracy comes with a downside: Calculations with it are not as performant as with the primitive data type `number`.