Skip to content

Commit

Permalink
add Float16 to byteConversionValues
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Jan 20, 2024
1 parent 17ba9ae commit dc0a49c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions harness/byteConversionValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,49 @@ var byteConversionValues = {
0, // -Infinity
0
],
Float16: [
127, // 127
128, // 128
32768, // 32767
32768, // 32768
Infinity, // 2147483647
Infinity, // 2147483648
255, // 255
256, // 256
Infinity, // 65535
Infinity, // 65536
Infinity, // 4294967295
Infinity, // 4294967296
Infinity, // 9007199254740991
Infinity, // 9007199254740992
1.099609375, // 1.1
0.0999755859375, // 0.1
0.5, // 0.5
0.5, // 0.50000001,
0.60009765625, // 0.6
0.7001953125, // 0.7
NaN, // undefined
-1, // -1
-0, // -0
-0.0999755859375, // -0.1
-1.099609375, // -1.1
NaN, // NaN
-127, // -127
-128, // -128
-32768, // -32767
-32768, // -32768
-Infinity, // -2147483647
-Infinity, // -2147483648
-255, // -255
-256, // -256
-Infinity, // -65535
-Infinity, // -65536
-Infinity, // -4294967295
-Infinity, // -4294967296
Infinity, // Infinity
-Infinity, // -Infinity
0
],
Float32: [
127, // 127
128, // 128
Expand Down

0 comments on commit dc0a49c

Please sign in to comment.