From 68000e034cdd6e5fc3ca45fbad50178e382d0a3f Mon Sep 17 00:00:00 2001 From: Julien Le Sech Date: Sat, 27 Aug 2022 17:31:52 +0200 Subject: [PATCH] No sign bit in uflt12f JavaScript decoder --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27678e79..91e02009 100644 --- a/README.md +++ b/README.md @@ -1236,7 +1236,7 @@ function uflt12f(rawUflt12) // that Math.pow(2, k) is handled efficiently by // the JS interpreter! If this is time critical code, // you can replace by a suitable shift and divide. - var f_unscaled = sSign * mant1 * Math.pow(2, exp1 - 15); + var f_unscaled = mant1 * Math.pow(2, exp1 - 15); return f_unscaled; }