Skip to content

Commit

Permalink
No sign bit in uflt12f JavaScript decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesech committed Aug 27, 2022
1 parent 8d378ea commit 68000e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 68000e0

Please sign in to comment.