Skip to content

Commit

Permalink
Exponentiation operator
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Nov 16, 2024
1 parent 0a1bd76 commit c96c001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f16.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getFloat16(
m += 1024;
e--;
}
m *= Math.pow(2, e - 24);
m *= 2 ** (e - 24);
}
return (s >> 7) ? -m : m;
}
Expand Down

0 comments on commit c96c001

Please sign in to comment.