Skip to content

Commit 68000e0

Browse files
committed
No sign bit in uflt12f JavaScript decoder
1 parent 8d378ea commit 68000e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ function uflt12f(rawUflt12)
12361236
// that Math.pow(2, k) is handled efficiently by
12371237
// the JS interpreter! If this is time critical code,
12381238
// you can replace by a suitable shift and divide.
1239-
var f_unscaled = sSign * mant1 * Math.pow(2, exp1 - 15);
1239+
var f_unscaled = mant1 * Math.pow(2, exp1 - 15);
12401240

12411241
return f_unscaled;
12421242
}

0 commit comments

Comments
 (0)