add Float16 to byteConversionValues

This commit is contained in:
Kevin Gibbons 2024-01-20 15:52:09 -08:00 committed by Ms2ger
parent 17ba9aea47
commit 4087779220
1 changed files with 43 additions and 0 deletions

View File

@ -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